Skip to content
This repository has been archived by the owner on Aug 1, 2020. It is now read-only.

Commit

Permalink
fix: E2E-Tests not running
Browse files Browse the repository at this point in the history
  • Loading branch information
about-code committed Jul 4, 2018
1 parent b9a1db9 commit 3d3d0dd
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
4 changes: 1 addition & 3 deletions generators/project-app/template/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,9 @@ Use `npm run lerna -- publish` to version packages (see [lernajs.io](https://ler

### End-To-End / UI-Testing


1. Before you run tests the very first time: `npm run webdriver-manager update`
1. Run Application (console 1): `npm start`
1. Run Selenium Server locally (console 2): `npm run selenium`
1. Run Tests locally (console 3): `npm run test-e2e`
1. Run Tests locally (console 2): `npm run test-e2e`

- **Convention:** E2E test specs must end with `.e2e-spec.ts`
- **Note:** To customize the setup edit `config/protractor.js`.
Expand Down
12 changes: 8 additions & 4 deletions generators/project-app/template/config/protractor.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,14 @@ exports.config = {
},

beforeLaunch: function() {
require('ts-node').register({
project: path.resolve(__dirname, '../'),
compiler: 'typescript'
});
require('ts-node').register({
project: path.resolve(__dirname, '../tsconfig.json'),
compiler: 'typescript',
transpileOnly: true,
compilerOptions: {
module: "commonjs"
}
});
}
};

2 changes: 1 addition & 1 deletion generators/project-app/template/src/bundle-polyfills.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import "core-js/es6";
import "core-js/es7/reflect";
require("zone.js/dist/zone");
import "zone.js/dist/zone";

0 comments on commit 3d3d0dd

Please sign in to comment.