Skip to content

Commit

Permalink
chore: migration to use viest
Browse files Browse the repository at this point in the history
  • Loading branch information
phunguyenmurcul committed Oct 6, 2023
1 parent ae5a284 commit f90541f
Show file tree
Hide file tree
Showing 6 changed files with 3,366 additions and 297 deletions.
3 changes: 2 additions & 1 deletion __tests__/mock-default.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { vi, describe, it, expect } from 'vitest';
import { useDefault } from '../src/main.js';

jest.mock('../src/mock.js', () => ({
vi.mock('../src/mock.js', () => ({
default: {
methodBar: () => 'foo',

Check warning on line 6 in __tests__/mock-default.test.ts

View workflow job for this annotation

GitHub Actions / build

Missing return type on function
methodFoo: () => 'bar',

Check warning on line 7 in __tests__/mock-default.test.ts

View workflow job for this annotation

GitHub Actions / build

Missing return type on function
Expand Down
3 changes: 2 additions & 1 deletion __tests__/mock-exports.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { vi, describe, it, expect } from 'vitest';
import { useMethodFoo, useMethodBar } from '../src/main.js';

jest.mock('../src/mock.js', () => ({
vi.mock('../src/mock.js', () => ({
methodBar: () => 'foo',

Check warning on line 5 in __tests__/mock-exports.test.ts

View workflow job for this annotation

GitHub Actions / build

Missing return type on function
methodFoo: () => 'bar',

Check warning on line 6 in __tests__/mock-exports.test.ts

View workflow job for this annotation

GitHub Actions / build

Missing return type on function
}));
Expand Down
18 changes: 0 additions & 18 deletions jest.config.js

This file was deleted.

Loading

0 comments on commit f90541f

Please sign in to comment.