this has broken me but it's done

This commit is contained in:
Jack Case
2025-12-10 21:02:55 +00:00
parent df37dd9536
commit 6a5c81104e
4 changed files with 10 additions and 4 deletions

View File

@@ -1,4 +1,4 @@
import { SlopDB } from "../scripts/indexed-db.mjs"
import { SlopDB } from "../scripts/indexed-db.js"
describe("sanity check", () => {
it("works", () => {

View File

@@ -10,7 +10,7 @@ export default {
helpers: [
"spec/helpers/**/*.?(m)js"
],
esmFilenameExtension: ".mjs",
esmFilenameExtension: ".js",
// Set to true if you need to load module src files instead of loading via the spec files.
modulesWithSideEffectsInSrcFiles: false,
// Allows the use of top-level await in src/spec/helper files. This is off by
@@ -34,5 +34,11 @@ export default {
browser: {
name: "firefox",
headless: true
},
"importMap": {
"moduleRootDir": "scripts",
"imports": {
"idb/": "scripts/idb/"
}
}
};

View File

@@ -1,4 +1,4 @@
import { openDB, IDBPDatabase } from "/idb/index.js"
import { openDB, IDBPDatabase } from "idb/index.js"
export class IDBCursorValueIterator {
cursor: IDBCursorWithValue

View File

@@ -18,7 +18,7 @@
"target": "esnext",
"baseUrl": ".",
"paths": {
"/idb/*": ["node_modules/idb/build/*"]
"idb/*": ["node_modules/idb/build/*"]
},
"module": "nodenext",