Skip to content

Commit 25b9013

Browse files
committed
fix cypress tsconfig
1 parent a1c09b5 commit 25b9013

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

cypress.config.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,6 @@ module.exports = defineConfig({
2020
// We've imported your old cypress plugins here.
2121
// You may want to clean this up later by importing these.
2222
setupNodeEvents(on, config) {
23-
on('before:browser:launch', (_browser, launchOptions) => {
24-
launchOptions.args.push('--disable-gpu');
25-
26-
return launchOptions;
27-
});
28-
2923
return require('./cypress/plugins/index')(on, config);
3024
},
3125
baseUrl: 'http://localhost:3000',

cypress/tsconfig.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
{
22
"compilerOptions": {
3+
"paths": {
4+
"common/*": ["../common/*"],
5+
"components/*": ["../components/*"],
6+
"pages/*": ["../pages/*"],
7+
"public/*": ["../public/*"],
8+
"scripts/*": ["../scripts/*"],
9+
"static/*": ["../public/static/*"],
10+
"styles/*": ["../styles/*"],
11+
"test-utils/*": ["../test-utils/*"]
12+
},
313
"types": ["cypress", "@testing-library/cypress"]
414
}
515
}

0 commit comments

Comments
 (0)