Skip to content

Commit

Permalink
test: increase file count
Browse files Browse the repository at this point in the history
  • Loading branch information
AriPerkkio committed Nov 7, 2023
1 parent b7e5ebd commit 4bb1e19
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions generate-files.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import * as fs from "node:fs";
import { resolve } from "node:path";

const COVERED_FILE_COUNT = Array(100).fill(0);
const UNCOVERED_FILE_COUNT = Array(200).fill(0);
const FUNCTION_COUNT = Array(50).fill(0);
const UNCOVERED_FILE_COUNT = Array(500).fill(0);
const FUNCTION_COUNT = Array(100).fill(0);

const fileContents = FUNCTION_COUNT.map((_, index) =>
`
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"packageManager": "[email protected]",
"scripts": {
"postinstall": "node ./generate-files.mjs",
"test": "vitest --run"
"test": "CI=true vitest --run"
},
"devDependencies": {
"@types/node": "^20.9.0",
Expand Down
4 changes: 2 additions & 2 deletions vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ class MainThreadMemoryReporter implements Reporter {
clearInterval(interval);
this.ctx.logger.log("Stopping memory logger");
}
}, 1000);
}, 500);
}
}

export default defineConfig({
test: {
env: { CI: "true" },
logHeapUsage: true,
reporters: ["verbose", new MainThreadMemoryReporter()],
coverage: {
enabled: true,
Expand Down

0 comments on commit 4bb1e19

Please sign in to comment.