Skip to content

Commit

Permalink
e2e(react-18-tests-v8): setup cypress webpack to use v8 TS path alias…
Browse files Browse the repository at this point in the history
…es in order to work without build step (microsoft#32177)
  • Loading branch information
Hotell authored Jul 31, 2024
1 parent a1ce4d2 commit 424972c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
10 changes: 9 additions & 1 deletion apps/react-18-tests-v8/cypress.config.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
import * as path from 'node:path';
import { baseConfig } from '@fluentui/scripts-cypress';
const { registerTsPaths } = require('@fluentui/scripts-storybook');

export default baseConfig;
const tsConfigPath = path.resolve(__dirname, '../../tsconfig.base.v8.json');

const config = { ...baseConfig };

registerTsPaths({ config: config.component.devServer.webpackConfig, configFile: tsConfigPath });

export default config;
3 changes: 2 additions & 1 deletion apps/react-18-tests-v8/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
"@fluentui/scripts-cypress": "*",
"@fluentui/scripts-jest": "*",
"@fluentui/scripts-tasks": "*",
"@fluentui/scripts-webpack": "*"
"@fluentui/scripts-webpack": "*",
"@fluentui/scripts-storybook": "*"
},
"dependencies": {
"@fluentui/react": "*",
Expand Down
1 change: 1 addition & 0 deletions apps/react-18-tests-v8/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"jsx": "react",
"noUnusedLocals": true,
"preserveConstEnums": true,
"experimentalDecorators": true,
"skipLibCheck": true
},
"include": [],
Expand Down

0 comments on commit 424972c

Please sign in to comment.