Create test env
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
[test]
|
||||
preload = "./test/dom.ts"
|
||||
+5
-1
@@ -4,7 +4,9 @@
|
||||
"module": "index.ts",
|
||||
"type": "module",
|
||||
"files": ["index.ts"],
|
||||
|
||||
"scripts": {
|
||||
"test": "bun test"
|
||||
},
|
||||
"dependencies": {
|
||||
"jose": "^5.2.3",
|
||||
"log": "^6.3.1",
|
||||
@@ -12,6 +14,8 @@
|
||||
"zxcvbn": "^4.4.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@happy-dom/global-registrator": "^14.10.2",
|
||||
"@types/bun": "^1.1.2",
|
||||
"@types/zxcvbn": "^4.4.4"
|
||||
},
|
||||
"peerDependencies": {
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
import {GlobalRegistrator} from '@happy-dom/global-registrator'
|
||||
|
||||
GlobalRegistrator.register();
|
||||
+1
-1
@@ -3,7 +3,7 @@
|
||||
"baseUrl": "./src",
|
||||
|
||||
// Enable latest features
|
||||
"lib": ["ESNext"],
|
||||
"lib": ["ESNext","dom"],
|
||||
"target": "ESNext",
|
||||
"module": "ESNext",
|
||||
"moduleDetection": "force",
|
||||
|
||||
Reference in New Issue
Block a user