diff --git a/aio/content/examples/testing/specs.stackblitz.json b/aio/content/examples/testing/specs.stackblitz.json index 627630f6ed..adba3c62bf 100644 --- a/aio/content/examples/testing/specs.stackblitz.json +++ b/aio/content/examples/testing/specs.stackblitz.json @@ -1,24 +1,22 @@ { "description": "Testing - specs", "files":[ + "src/expected.ts", + "src/index-specs.html", + "src/main-specs.ts", "src/styles.css", + "src/test.css", + "src/tests.sb.ts", + + "e2e/src/**/*.ts", "src/app/**/*.css", "src/app/**/*.html", "src/app/**/*.ts", - "src/app/**/*.spec.ts", - "src/testing/*.ts", + "src/testing/**/*", - "!src/main.ts", - "!src/app/bag/*.*", - "!src/app/1st.spec.ts", - - "src/expected.ts", - "src/test.css", - "src/tests.sb.ts", - "src/main-specs.ts", - "src/index-specs.html" + "src/**/*.spec.ts" ], "main": "src/index-specs.html", "tags": ["testing"] diff --git a/aio/content/examples/testing/src/testing/global-jasmine.ts b/aio/content/examples/testing/src/testing/global-jasmine.ts index 04c52750b9..560ff97d66 100644 --- a/aio/content/examples/testing/src/testing/global-jasmine.ts +++ b/aio/content/examples/testing/src/testing/global-jasmine.ts @@ -1,3 +1,3 @@ -const jasmineRequire = require('jasmine-core/lib/jasmine-core/jasmine.js'); +import jasmineRequire from 'jasmine-core/lib/jasmine-core/jasmine.js'; window['jasmineRequire'] = jasmineRequire; diff --git a/aio/content/examples/testing/stackblitz.json b/aio/content/examples/testing/stackblitz.json index d05e3dbb1a..5575ff8511 100644 --- a/aio/content/examples/testing/stackblitz.json +++ b/aio/content/examples/testing/stackblitz.json @@ -1,19 +1,18 @@ { "description": "Heroes Test App", "files":[ + "src/index.html", + "src/main.ts", "src/styles.css", + "src/test.css", + + "e2e/src/**/*.ts", "src/app/**/*.css", "src/app/**/*.html", "src/app/**/*.ts", - "!src/app/bag/*.*", - - "!src/test.ts", - - "src/test.css", - "src/main.ts", - "src/index.html" + "!src/**/*.spec.ts" ], "tags": ["testing"] } diff --git a/aio/tools/examples/shared/boilerplate/testing/tsconfig.app.json b/aio/tools/examples/shared/boilerplate/testing/tsconfig.app.json index 968ddce886..e5dfecd763 100644 --- a/aio/tools/examples/shared/boilerplate/testing/tsconfig.app.json +++ b/aio/tools/examples/shared/boilerplate/testing/tsconfig.app.json @@ -1,5 +1,5 @@ { - "extends": "../tsconfig.json", + "extends": "./tsconfig.json", "compilerOptions": { "outDir": "../out-tsc/app", "types": [] diff --git a/aio/tools/examples/shared/boilerplate/testing/tsconfig.spec.json b/aio/tools/examples/shared/boilerplate/testing/tsconfig.spec.json index 581e5c58de..9004a69b07 100644 --- a/aio/tools/examples/shared/boilerplate/testing/tsconfig.spec.json +++ b/aio/tools/examples/shared/boilerplate/testing/tsconfig.spec.json @@ -1,5 +1,5 @@ { - "extends": "../tsconfig.json", + "extends": "./tsconfig.json", "compilerOptions": { "outDir": "../out-tsc/spec", "types": [ @@ -8,8 +8,8 @@ ] }, "files": [ - "test.ts", - "polyfills.ts" + "src/test.ts", + "src/polyfills.ts" ], "include": [ "src/**/*.spec.ts",