Create test env

This commit is contained in:
2024-05-14 13:10:02 +02:00
parent 7ddbd60511
commit bd5cb1bde7
4 changed files with 11 additions and 2 deletions
+2
View File
@@ -0,0 +1,2 @@
[test]
preload = "./test/dom.ts"
+5 -1
View File
@@ -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": {
+3
View File
@@ -0,0 +1,3 @@
import {GlobalRegistrator} from '@happy-dom/global-registrator'
GlobalRegistrator.register();
+1 -1
View File
@@ -3,7 +3,7 @@
"baseUrl": "./src",
// Enable latest features
"lib": ["ESNext"],
"lib": ["ESNext","dom"],
"target": "ESNext",
"module": "ESNext",
"moduleDetection": "force",