We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad3232d commit 6002360Copy full SHA for 6002360
1 file changed
integration/vite-extra-server-environment-test.ts
@@ -1,5 +1,6 @@
1
import { test, expect } from "@playwright/test";
2
import * as fs from "node:fs";
3
+import path from "node:path";
4
5
import { build, createProject, reactRouterConfig } from "./helpers/vite.js";
6
@@ -111,8 +112,8 @@ test("ignores external server environments without skipping React Router build h
111
112
expect(status).toBe(0);
113
expect(
114
fs
- .readdirSync("build/client/assets")
115
- .filter((file) => file.startsWith("test-") && file.endsWith(".txt"))
+ .readdirSync(path.join(cwd, "build/client/assets"))
116
+ .filter((file) => /^test-.*\.txt$/.test(file))
117
.length,
118
).toBe(1);
119
});
0 commit comments