I have Angular2 project build with Angular-CLI (beta 20).
Is there a way to run tests against only one selected spec file?
I used to have a project based on
Configure test.ts file inside src folder:
test.ts
src
const context = require.context('./', true, /\.spec\.ts$/);
Replace /\.spec\.ts$/ with the file name you want to test. For example: /app.component\.spec\.ts$/
/\.spec\.ts$/
/app.component\.spec\.ts$/
This will run test only for app.component.spec.ts.
app.component.spec.ts