this has broken me but it's done
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
import { SlopDB } from "../scripts/indexed-db.mjs"
|
import { SlopDB } from "../scripts/indexed-db.js"
|
||||||
|
|
||||||
describe("sanity check", () => {
|
describe("sanity check", () => {
|
||||||
it("works", () => {
|
it("works", () => {
|
||||||
@@ -10,7 +10,7 @@ export default {
|
|||||||
helpers: [
|
helpers: [
|
||||||
"spec/helpers/**/*.?(m)js"
|
"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.
|
// Set to true if you need to load module src files instead of loading via the spec files.
|
||||||
modulesWithSideEffectsInSrcFiles: false,
|
modulesWithSideEffectsInSrcFiles: false,
|
||||||
// Allows the use of top-level await in src/spec/helper files. This is off by
|
// Allows the use of top-level await in src/spec/helper files. This is off by
|
||||||
@@ -34,5 +34,11 @@ export default {
|
|||||||
browser: {
|
browser: {
|
||||||
name: "firefox",
|
name: "firefox",
|
||||||
headless: true
|
headless: true
|
||||||
|
},
|
||||||
|
"importMap": {
|
||||||
|
"moduleRootDir": "scripts",
|
||||||
|
"imports": {
|
||||||
|
"idb/": "scripts/idb/"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { openDB, IDBPDatabase } from "/idb/index.js"
|
import { openDB, IDBPDatabase } from "idb/index.js"
|
||||||
|
|
||||||
export class IDBCursorValueIterator {
|
export class IDBCursorValueIterator {
|
||||||
cursor: IDBCursorWithValue
|
cursor: IDBCursorWithValue
|
||||||
@@ -18,7 +18,7 @@
|
|||||||
"target": "esnext",
|
"target": "esnext",
|
||||||
"baseUrl": ".",
|
"baseUrl": ".",
|
||||||
"paths": {
|
"paths": {
|
||||||
"/idb/*": ["node_modules/idb/build/*"]
|
"idb/*": ["node_modules/idb/build/*"]
|
||||||
},
|
},
|
||||||
"module": "nodenext",
|
"module": "nodenext",
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user