Skip to content

Commit 6944485

Browse files
committed
chore(test): refactor folder playwright
1 parent bdebc2a commit 6944485

File tree

5 files changed

+4
-3
lines changed

5 files changed

+4
-3
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
"check-format": "prettier --check .",
1313
"prepare": "husky",
1414
"test": "vitest",
15-
"test:coverage": "vitest run --coverage"
15+
"test:coverage": "vitest run --coverage",
16+
"test:e2e": "playwright test --config=tests/setup/playwright.config.ts"
1617
},
1718
"husky": {
1819
"hooks": {
File renamed without changes.

playwright.config.ts renamed to tests/setup/playwright.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { defineConfig, devices } from "@playwright/test";
1212
* See https://playwright.dev/docs/test-configuration.
1313
*/
1414
export default defineConfig({
15-
testDir: "./e2e",
15+
testDir: "../e2e",
1616
/* Run tests in files in parallel */
1717
fullyParallel: true,
1818
/* Fail the build on CI if you accidentally left test.only in the source code. */
File renamed without changes.

vitest.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export default defineConfig({
2626
test: {
2727
environment: "jsdom",
2828
globals: true,
29-
setupFiles: "./tests/vitest-setup.ts",
29+
setupFiles: "./tests/setup/vitest-setup.ts",
3030
exclude: [...configDefaults.exclude, ...testExclusions],
3131
coverage: {
3232
exclude: [...(configDefaults.coverage.exclude ?? []), ...testExclusions],

0 commit comments

Comments
 (0)