yet again, spending time trying to use an llm as intended was wasted. RTFM

https://jasmine.github.io/setup/browser.html#es-module-support
This commit is contained in:
Jack Case
2025-12-10 14:36:12 +00:00
parent 2631f46d67
commit 6212eaa099
3 changed files with 7 additions and 21 deletions

View File

@@ -1,21 +1,7 @@
import { SlopDB } from "../scripts/indexed-db.mjs"
describe("sanity check", () => {
describe("IndexedDB Abstractions", function () { it("works", () => {
expect(true).toBeTrue()
beforeAll(async function () {
try {
const mod = await import("../scripts/indexed-db.js")
SlopDB = mod.SlopDB
} catch (err) {
it("works?", function () {
fail(err)
})
}
}) })
it("lol", function() {
expect(false).toBeTrue()
})
}) })

View File

@@ -1,11 +1,11 @@
export default { export default {
srcDir: "scripts", srcDir: ".",
// srcFiles should usually be left empty when using ES modules, because you'll // srcFiles should usually be left empty when using ES modules, because you'll
// explicitly import sources from your specs. // explicitly import sources from your specs.
srcFiles: [], srcFiles: [],
specDir: "./spec", specDir: ".",
specFiles: [ specFiles: [
"**/*[sS]pec.?(m)js" "spec/**/*[sS]pec.?(m)js"
], ],
helpers: [ helpers: [
"spec/helpers/**/*.?(m)js" "spec/helpers/**/*.?(m)js"