diff --git a/src/unit.config.ts b/src/unit.config.ts index abb0b045..eb869d26 100644 --- a/src/unit.config.ts +++ b/src/unit.config.ts @@ -12,7 +12,7 @@ function webpackConfig(args: any): webpack.Configuration { const outputPath = output!.path as string; config.entry = () => { const unit = globby - .sync([`${basePath}/tests/unit/**/*.ts`]) + .sync([`${basePath}/tests/unit/**/*.{ts,tsx}`, `${basePath}/src/**/*.spec.{ts,tsx}`]) .map((filename: string) => filename.replace(/\.ts$/, '')); const tests: any = {}; diff --git a/test-app/package.json b/test-app/package.json index d41558e9..b5fe0b4d 100644 --- a/test-app/package.json +++ b/test-app/package.json @@ -13,7 +13,7 @@ "build:dev:pwa": "dojo build --dojorc .dojorc-dev-pwa", "build:dist:pwa:evergreen": "dojo build --dojorc .dojorc-dist-pwa-evergreen", "build:dev:pwa:evergreen": "dojo build --dojorc .dojorc-dev-pwa-evergreen", - "build:test": "dojo build --mode test" + "build:test": "dojo build --mode unit" }, "author": "", "license": "ISC",