Skip to content

Commit

Permalink
fix cypress
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastien LE MOUILLOUR committed Nov 17, 2023
1 parent 26f7304 commit 70dba13
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
3 changes: 0 additions & 3 deletions .npmrc
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@ public-hoist-pattern[]=eslint-plugin-testing-library
public-hoist-pattern[]=postcss-scss
public-hoist-pattern[]=stylelint-config-sass-guidelines

# CYPRESS
public-hoist-pattern[]=cypress

# JEST
public-hoist-pattern[]=jest-environment-jsdom
public-hoist-pattern[]=jest-environment-jsdom-global
Expand Down
11 changes: 9 additions & 2 deletions packages/design-system/cypress.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { defineConfig } from 'cypress';

import path from 'path';

import {
Expand All @@ -19,9 +18,17 @@ const webpackConfig = {
fallback: {
url: false,
},
alias: {
react: path.resolve(__dirname, './node_modules/react'),
'react-dom': path.resolve(__dirname, './node_modules/react-dom'),
},
},
module: {
rules: getWebpackRules([path.resolve(process.cwd(), './src/')], true, true),
rules: getWebpackRules(
[path.resolve(process.cwd(), './src/'), path.resolve(process.cwd(), './cypress/')],
true,
true,
),
},
plugins: getWebpackPlugins(),
};
Expand Down
1 change: 1 addition & 0 deletions packages/design-system/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
"@talend/storybook-docs": "^2.2.0",
"@testing-library/cypress": "^9.0.0",
"@types/classnames": "^2.3.1",
"@types/cypress": "^1.1.3",
"@types/jest-axe": "^3.5.8",
"@types/react-is": "^18.2.4",
"@types/react": "^18.2.37",
Expand Down
3 changes: 3 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 70dba13

Please sign in to comment.