Skip to content

Commit 969f859

Browse files
committed
jest -> vitest
1 parent b781b1d commit 969f859

11 files changed

+10
-24
lines changed

global.d.ts

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
},
1818
"scripts": {
1919
"eslint": "npx eslint .",
20-
"test": "cd tests && ./gen-certs.sh && npx jest",
20+
"test": "cd tests && ./gen-certs.sh && npx vitest",
2121
"ts-compile": "npx tsc --noEmit",
2222
"prepack": "rm -rf build && npx tsc -p ./tsconfig-build.json && npx ts-add-js-extension --dir=build"
2323
},

tests/error.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { describe, expect, it, vi } from 'vitest';
1+
import { describe, expect, it } from 'vitest';
22

33
/* eslint-disable no-console */
44
/* eslint-disable jest/no-conditional-expect */

tests/options.after.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { afterAll, beforeAll, describe, expect, it, vi } from 'vitest';
1+
import { describe, expect, it, vi } from 'vitest';
22

33
import * as de from '../lib';
44

tests/options.before.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { afterAll, beforeAll, describe, expect, it, vi } from 'vitest';
1+
import { describe, expect, it, vi } from 'vitest';
22

33
import { getResultBlock, waitForError, waitForValue } from './helpers';
44

tests/options.cache.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { afterAll, beforeAll, describe, expect, it, vi } from 'vitest';
1+
import { describe, expect, it, vi } from 'vitest';
22

33
import * as de from '../lib';
44

@@ -53,7 +53,7 @@ describe('options.cache, options.key, options.maxage', () => {
5353
const cache = new Cache();
5454

5555
const blockValue = Symbol();
56-
const spy = vi.fn<typeof blockValue, any>(() => blockValue);// as () => typeof blockValue;
56+
const spy = vi.fn(() => blockValue);// as () => typeof blockValue;
5757
const block = getResultBlock(spy, 50).extend({
5858
options: {
5959
cache: cache,

tests/options.error.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { afterAll, beforeAll, describe, expect, it, vi } from 'vitest';
1+
import { describe, expect, it, vi } from 'vitest';
22

33
/* eslint-disable jest/no-conditional-expect */
44
import { getErrorBlock, getResultBlock } from './helpers';

tests/options.params.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { afterAll, beforeAll, describe, expect, it, vi } from 'vitest';
1+
import { describe, expect, it, vi } from 'vitest';
22

33
/* eslint-disable jest/no-conditional-expect */
44

tests/options.timeout.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { afterAll, beforeAll, describe, expect, it, vi } from 'vitest';
1+
import { describe, expect, it } from 'vitest';
22

33
/* eslint-disable jest/no-conditional-expect */
44
import * as de from '../lib';

tests/stripNullAndUndefinedValues.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { afterAll, beforeAll, describe, expect, it, vi } from 'vitest';
1+
import { describe, expect, it } from 'vitest';
22

33
import stripNullAndUndefinedValues from '../lib/stripNullAndUndefinedValues';
44

0 commit comments

Comments
 (0)