mirror of
https://github.com/doctrine/doctrine-website.git
synced 2026-03-23 22:32:11 +01:00
Create jest setup file for globally used jQuery in tests
This commit is contained in:
committed by
Claudio Zizza
parent
a2e43ed482
commit
f425366257
@@ -6,5 +6,6 @@ module.exports = {
|
||||
"transform": {
|
||||
"^.+\\.js$": "babel-jest",
|
||||
},
|
||||
"setupFiles": ["./jest/setup/jest.js"],
|
||||
testEnvironment: 'jsdom'
|
||||
};
|
||||
|
||||
2
jest/setup/jest.js
Normal file
2
jest/setup/jest.js
Normal file
@@ -0,0 +1,2 @@
|
||||
import $ from 'jquery';
|
||||
global.$ = global.jQuery = $;
|
||||
Reference in New Issue
Block a user