Skip to content

Commit a0e2122

Browse files
authored
feat: migrate from jest to vitest (#626)
* feat: migrate from jest to vitest Signed-off-by: Rui Chen <[email protected]> * chore: bump to node 24 and run build Signed-off-by: Rui Chen <[email protected]> * chore: specify es2022 target for ncc build Signed-off-by: Rui Chen <[email protected]> --------- Signed-off-by: Rui Chen <[email protected]>
1 parent 8836085 commit a0e2122

File tree

10 files changed

+1500
-3204
lines changed

10 files changed

+1500
-3204
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ __tests__/runner/*
22
# actions requires a node_modules dir https://github.com/actions/toolkit/blob/master/docs/javascript-action.md#publish-a-releasesv1-action
33
# but its recommended not to check these in https://github.com/actions/toolkit/blob/master/docs/action-versioning.md#recommendations
44
node_modules
5+
coverage

.tool-versions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
nodejs 20.19.2
1+
nodejs 24.2.0

__tests__/github.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ import {
77
findTagFromReleases,
88
} from "../src/github";
99

10+
import { describe, it } from "vitest";
11+
1012
describe("github", () => {
1113
describe("mimeOrDefault", () => {
1214
it("returns a specific mime for common path", async () => {

__tests__/util.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ import {
1010
} from "../src/util";
1111
import * as assert from "assert";
1212

13+
import { describe, it, expect } from "vitest";
14+
1315
describe("util", () => {
1416
describe("uploadUrl", () => {
1517
it("strips template", () => {

dist/index.js

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jest.config.ts

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)