Skip to content

Commit

Permalink
ciao vitest
Browse files Browse the repository at this point in the history
  • Loading branch information
AugustinMauroy committed Nov 23, 2024
1 parent 88bacaf commit 3de6867
Show file tree
Hide file tree
Showing 13 changed files with 375 additions and 1,661 deletions.
3 changes: 3 additions & 0 deletions TODO.md
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
- open graph image (need to be designed)
- Write unit test for:
- `useCopyToClipboard`
- `WithEnventsCard`
41 changes: 0 additions & 41 deletions components/Logic/__tests__/WithEnventsCard.test.tsx

This file was deleted.

130 changes: 0 additions & 130 deletions components/Logic/__tests__/__snapshots__/WithEnventsCard.test.tsx.snap

This file was deleted.

81 changes: 0 additions & 81 deletions hooks/__tests__/useCopyToClipboard.test.ts

This file was deleted.

14 changes: 14 additions & 0 deletions node-hooks/react.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { register } from 'node:module';
import { pathToFileURL } from 'node:url';
import jsdom from 'jsdom';

register('nodejs-loaders/testing/css-module', pathToFileURL('./'));

// We doesn't need to load any html/css because it's handle by testing-library
const { document } = new jsdom.JSDOM().window;

/**
* Make the JSDOM global objects available to the Node.js environment.
*/
global.document = document;
global.window = document.defaultView;
5 changes: 5 additions & 0 deletions node-hooks/typescript.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { register } from 'node:module';
import { pathToFileURL } from 'node:url';

register('nodejs-loaders/dev/alias', pathToFileURL('./'));
register('nodejs-loaders/dev/tsx', pathToFileURL('./'));
Loading

0 comments on commit 3de6867

Please sign in to comment.