Add tests && add img lazy async
This commit is contained in:
10
src/test/runTest.ts
Normal file
10
src/test/runTest.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
|
||||
|
||||
export function declareTest() {
|
||||
if(import.meta.env.DEV){
|
||||
globalThis.test = async () => {
|
||||
const d = await import("./test.js")
|
||||
return d.test()
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user