Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .configs/vitest.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "..");
export default defineConfig({
root,
test: {
include: ["tests/**/*.test.mjs"],
include: ["tests/**/*.test.vitest.mjs"],
exclude: ["node_modules"],
environment: "node",
testTimeout: 30000,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* const port = process.env.PORT || 3000;
* app.listen(port, '0.0.0.0', () => console.log(`WOL proxy on port ${port}`));
*
* `tests/wake-endpoint.test.mjs` covers the `process.env.PORT` (truthy) branch by
* `tests/wake-endpoint.test.vitest.mjs` covers the `process.env.PORT` (truthy) branch by
* setting `PORT=0` for an ephemeral real bind. This file covers the `|| 3000`
* fallback branch (PORT unset) in a separate process (the OOM-safe runner spawns
* one vitest child process per test file, so env vars and the CJS `require.cache`
Expand Down
2 changes: 1 addition & 1 deletion tests/run-vitest.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const code = await run({
cwd: root,
testDir: "tests",
vitestConfig: ".configs/vitest.config.mjs",
testFilePattern: /\.test\.mjs$/,
testFilePattern: /\.test\.vitest\.mjs$/,
testPatterns,
workers,
coverageQuiet,
Expand Down
File renamed without changes.
Loading