Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
0xNe0x1 committed Mar 25, 2024
1 parent 199492f commit d53ef2c
Show file tree
Hide file tree
Showing 4 changed files with 169 additions and 69 deletions.
15 changes: 15 additions & 0 deletions cypress.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
const { defineConfig } = require('cypress')
const webpack = require('@cypress/webpack-preprocessor')

module.exports = defineConfig({
"video": false,
"e2e": {
"specPattern": "cypress/e2e/**/*.{js,jsx,ts,tsx}",
setupNodeEvents(on, config) {
const options = {
webpackOptions: require('./webpack.config.js'),
};
on('file:preprocessor', webpack(options));
},
}
})
6 changes: 0 additions & 6 deletions cypress.json

This file was deleted.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
"@babel/plugin-transform-runtime": "^7.14.5",
"@babel/preset-env": "^7.12.7",
"@babel/preset-react": "^7.12.7",
"@cypress/webpack-preprocessor": "^6.0.1",
"@cypress/react": "^5.12.5",
"@depay/coinbase-wallet-sdk": "3.8.4",
"@depay/react-shadow-dom": "^5.0.5",
Expand All @@ -64,7 +65,7 @@
"babel-loader": "^8.2.2",
"babel-preset-env": "^1.7.0",
"babel-preset-react": "^6.24.1",
"cypress": "^7.6.0",
"cypress": "^10.11.0",
"eslint": "^7.15.0",
"eslint-loader": "^4.0.2",
"eslint-plugin-import": "^2.22.1",
Expand Down
Loading

0 comments on commit d53ef2c

Please sign in to comment.