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 .github/actions/prepare/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ runs:
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
with:
cache: pnpm
node-version: "20"
node-version: "22"
- run: pnpm install --frozen-lockfile
shell: bash
using: composite
2 changes: 1 addition & 1 deletion .github/workflows/test-mutation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ jobs:
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- uses: ./.github/actions/prepare
- run: pnpm run test:mutation --coverage --no-file-parallelism
- run: pnpm run test:mutation --coverage --no-file-parallelism --testTimeout 10000
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 I vaguely remember these timing out once in a while.

- name: Codecov
uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v6
with:
Expand Down
6 changes: 6 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,4 +143,10 @@ export default defineConfig(
],
},
},
{
files: ["pnpm-workspace.yaml"],
rules: {
"yml/file-extension": ["off"],
},
},
);
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
},
"packageManager": "pnpm@10.33.2",
"engines": {
"node": ">=18.6"
"node": ">=22.22"
},
"publishConfig": {
"provenance": true
Expand Down
1 change: 1 addition & 0 deletions pnpm-workspace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
minimumReleaseAge: 1440
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ describe("collectReferencedPackageNames", () => {
);

expect(Array.from(packageNames)).toStrictEqual(["node", "automutate"]);
});
}, 7_000);

it("should ignore defined package names", () => {
const cwd = process.cwd();
Expand Down
2 changes: 1 addition & 1 deletion test/cleanups.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ describe("Cleanups", () => {
await runMutationTest(caseDir);
await expect(actualContent).toMatchFileSnapshot(expectedFilePath);
expect(options).toMatchSnapshot("options");
}, 6000);
}, 10_000);
});
2 changes: 1 addition & 1 deletion test/customMutators.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@ describe("Custom mutators", () => {
await runMutationTest(caseDir);
await expect(actualContent).toMatchFileSnapshot(expectedFilePath);
expect(options).toMatchSnapshot("options");
});
}, 15_000);
});
2 changes: 1 addition & 1 deletion test/files.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@ describe("files", () => {
await runMutationTest(caseDir);
await expect(actualContent).toMatchFileSnapshot(expectedFilePath);
expect(options).toMatchSnapshot("options");
}, 7000);
}, 10_000);
});
2 changes: 1 addition & 1 deletion test/filters.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ describe("filters", () => {
await runMutationTest(caseDir);
await expect(actualContent).toMatchFileSnapshot(expectedFilePath);
expect(options).toMatchSnapshot("options");
}, 7000);
}, 10_000);

it("one", async () => {
const caseDir = path.join(import.meta.dirname, "./cases/filters/one");
Expand Down
2 changes: 1 addition & 1 deletion test/fixNoImplicitAny.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ describe("noImplicitAny", () => {
await runMutationTest(caseDir);
await expect(actualContent).toMatchFileSnapshot(expectedFilePath);
expect(options).toMatchSnapshot("options");
}, 7000);
}, 10_000);

it("property declarations", async () => {
const caseDir = path.join(
Expand Down
2 changes: 1 addition & 1 deletion test/include.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@ describe("include", () => {
await runMutationTest(caseDir);
await expect(actualContent).toMatchFileSnapshot(expectedFilePath);
expect(options).toMatchSnapshot("options");
});
}, 15_000);
});
2 changes: 1 addition & 1 deletion test/infiniteWaveDetection.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ test("Infinite wave detection", async () => {
await runMutationTest(caseDir);
await expect(actualContent).toMatchFileSnapshot(expectedFilePath);
expect(options).toMatchSnapshot("options");
}, 50000);
}, 60_000);
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"skipLibCheck": true,
"sourceMap": true,
"strict": true,
"target": "ES2022"
"target": "ES2022",
"types": ["node"]
},
"include": ["src", "test/*.ts"]
}
5 changes: 2 additions & 3 deletions vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@ export default defineConfig({
test: {
clearMocks: true,
coverage: {
all: true,
exclude: ["lib", "src/tests"],
include: ["src"],
exclude: ["src/tests/**", "src/**/*.test.ts"],
include: ["src/**/*.{ts,tsx}"],
reporter: ["html", "lcov"],
},
exclude: ["lib", "node_modules"],
Expand Down
Loading