Skip to content

Commit e48c172

Browse files
committed
test: run tests within workspace
to address Vite errors about serving restricted files from node_modules outside of workspace root
1 parent 9758d98 commit e48c172

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
.DS_Store
22
/node_modules/
3+
4+
# https://github.com/netlify/cli/issues/6958
5+
.netlify

.tests/.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/node_modules/
2+
/tmp/
23

3-
# Tests
4+
# playwright
45
/blob-report/
56
/playwright-report/
67
/playwright/.cache/

.tests/utils.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import * as os from "node:os";
21
import { fileURLToPath } from "url";
32

43
import { test as playwrightTest } from "@playwright/test";
@@ -16,8 +15,7 @@ import { ChildProcess } from "child_process";
1615

1716
const __filename = fileURLToPath(import.meta.url);
1817
const ROOT = Path.join(__filename, "../..");
19-
20-
const TMP = Path.join(os.tmpdir(), "react-router-templates.tests");
18+
const TMP = Path.join(ROOT, ".tests/tmp");
2119

2220
declare module "@playwright/test" {
2321
interface Page {

0 commit comments

Comments
 (0)