Skip to content

Commit

Permalink
fix glob in web/src
Browse files Browse the repository at this point in the history
  • Loading branch information
mastercactapus committed Mar 9, 2023
1 parent a2026e6 commit ae74e9f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion web/src/esbuild.cypress.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const path = require('path')
const glob = require('glob')

const intEntry = {}
glob.sync(path.join(__dirname, 'cypress/integration/*')).forEach((file) => {
glob.globSync(path.join(__dirname, 'cypress/integration/*')).forEach((file) => {
const name = path.basename(file, '.ts')
intEntry['integration/' + name] = file
})
Expand Down
1 change: 1 addition & 0 deletions web/src/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@
"chance": "1.1.7",
"cypress": "12.5.0",
"esbuild-jest": "0.5.0",
"glob": "9.2.1",
"jest": "29.5.0",
"prop-types": "15.8.0",
"redux": "4.2.0",
Expand Down
4 changes: 3 additions & 1 deletion web/src/webpack.cypress.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ module.exports = {
// Paths and extensions
entry: {
'support/e2e': path.join(__dirname, 'cypress/support'),
'integration/all': glob.sync(path.join(__dirname, 'cypress/integration/*')),
'integration/all': glob.globSync(
path.join(__dirname, 'cypress/integration/*'),
),
'plugins/index': path.join(__dirname, 'cypress/ci-plugins.js'),
},
target: 'node',
Expand Down

0 comments on commit ae74e9f

Please sign in to comment.