-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ccd2cce
commit 36d62a2
Showing
3 changed files
with
445 additions
and
432 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,5 @@ | ||
import { register } from 'node:module'; | ||
import { pathToFileURL } from 'node:url'; | ||
import jsdom from 'jsdom'; | ||
import 'global-jsdom/register'; | ||
|
||
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; |
Oops, something went wrong.