Skip to content

Commit

Permalink
readd test
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima authored Sep 7, 2024
1 parent 6c9a648 commit b54909c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/faker.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,14 @@ describe('faker', () => {
);
});

it('should not log anything on startup', () => {
it('should not log anything on startup', async () => {
const spies: MockInstance[] = keys(console)
.filter((key) => typeof console[key] === 'function')
.map((methodName) => vi.spyOn(console, methodName));

const file: unknown = await import('..');

Check failure on line 21 in test/faker.spec.ts

View workflow job for this annotation

GitHub Actions / TS-Check: node-22, ubuntu-latest

Cannot find module '..' or its corresponding type declarations.
expect(file).toBeDefined();

new Faker({ locale: { metadata: { title: '' } } });

for (const spy of spies) {
Expand Down

0 comments on commit b54909c

Please sign in to comment.