Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
keeema committed Feb 16, 2021
1 parent ae414ed commit 712c21d
Show file tree
Hide file tree
Showing 9 changed files with 361 additions and 363 deletions.
2 changes: 1 addition & 1 deletion cypress.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
"openMode": 0
},
"testFiles": "**/*.spec.ts",
"pluginsFile": "cypress/plugins/index.js",
"pluginsFile": "cypress/plugins/index.ts",
"supportFile": "cypress/support/index.ts"
}
12 changes: 0 additions & 12 deletions cypress/logs/failed-test-r-4-example-should-work.json

This file was deleted.

10 changes: 0 additions & 10 deletions cypress/plugins/index.js

This file was deleted.

14 changes: 14 additions & 0 deletions cypress/plugins/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// plugins file

import webpackPreprocessor = require("@cypress/webpack-preprocessor");
import cfg = require("../../webpack.config");

function register(on: Cypress.PluginEvents): void {
const options = {
webpackOptions: cfg as any,
watchOptions: {},
};
on("file:preprocessor", webpackPreprocessor(options) as (file: any) => string | Promise<string>);
}

export = register;
Loading

0 comments on commit 712c21d

Please sign in to comment.