Skip to content

Commit

Permalink
chore: 🛠 use @jscutlery/cypress-angular-dev-server in cypress-mount-i…
Browse files Browse the repository at this point in the history
…ntegration

#42
  • Loading branch information
yjaaidi committed May 10, 2021
1 parent f1b7484 commit 304fb71
Show file tree
Hide file tree
Showing 5 changed files with 94 additions and 88 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,13 @@
"@types/node": "12.20.12",
"@typescript-eslint/eslint-plugin": "4.22.1",
"@typescript-eslint/parser": "4.22.1",
"cypress": "^6.0.1",
"cypress": "^7.2.0",
"cypress-pipe": "^2.0.0",
"dotenv": "9.0.1",
"eslint": "7.26.0",
"eslint-config-prettier": "8.3.0",
"eslint-plugin-cypress": "^2.10.3",
"html-webpack-plugin": "^5.3.1",
"html-webpack-plugin": "^4.0.0",
"jest": "26.6.3",
"jest-preset-angular": "8.4.0",
"lerna": "^4.0.0",
Expand Down
7 changes: 4 additions & 3 deletions packages/cypress-mount-integration/cypress.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
{
"fileServerFolder": ".",
"fixturesFolder": "./src/fixtures",
"integrationFolder": "./src/integration",
"componentFolder": "./src/components",
"modifyObstructiveCode": false,
"pluginsFile": "./src/plugins/index",
"supportFile": "./src/support/index.ts",
"video": true,
"videosFolder": "../../dist/cypress/packages/cypress-mount-integration/videos",
"screenshotsFolder": "../../dist/cypress/packages/cypress-mount-integration/screenshots",
"chromeWebSecurity": false,
"experimentalComponentTesting": true
"component": {
"testFiles": "**/*.spec.{js,ts,jsx,tsx}",
"componentFolder": "./src/components"
}
}
9 changes: 6 additions & 3 deletions packages/cypress-mount-integration/src/plugins/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
const {
angularPreprocessor,
} = require('@jscutlery/cypress-angular-preprocessor');
startAngularDevServer,
} = require('@jscutlery/cypress-angular-dev-server');

module.exports = (on, config) => {
on('file:preprocessor', angularPreprocessor(config));
on('dev-server:start', (options) =>
startAngularDevServer({ config, options })
);
return config;
};
2 changes: 1 addition & 1 deletion packages/cypress-mount-integration/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extends": "../../tsconfig.base.json",
"files": [],
"include": [],
"include": ["src/components/**/*.ts", "src/support/**/*.ts"],
"references": [
{
"path": "./tsconfig.e2e.json"
Expand Down

0 comments on commit 304fb71

Please sign in to comment.