diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 4150cee..09a750c 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -2,5 +2,6 @@ "image": "mcr.microsoft.com/devcontainers/universal:2", "features": { "ghcr.io/devcontainers-community/npm-features/typescript:1": {} - } + }, + "postCreateCommand": "apt-get update && apt-get install -y firefox xvfb libxss1 libappindicator1 libindicator7" } \ No newline at end of file diff --git a/package.json b/package.json index dcfa4ec..96dd0ea 100644 --- a/package.json +++ b/package.json @@ -12,6 +12,6 @@ "scripts": { "build": "dev-scripts/build-extension.sh", "pretest": "tsc", - "test": "jasmine-browser-runner runSpecs" + "test": "xvfb-run -a jasmine-browser-runner runSpecs" } } diff --git a/spec/indexeddb_spec.js b/spec/indexeddb_spec.js index e69de29..3956040 100644 --- a/spec/indexeddb_spec.js +++ b/spec/indexeddb_spec.js @@ -0,0 +1,5 @@ +describe("hello", function() { + it("world", function() { + expect(true).toBe(true) + }) +}) \ No newline at end of file diff --git a/spec/support/jasmine-browser.mjs b/spec/support/jasmine-browser.mjs index 005a475..a1a24b1 100644 --- a/spec/support/jasmine-browser.mjs +++ b/spec/support/jasmine-browser.mjs @@ -3,9 +3,9 @@ export default { // srcFiles should usually be left empty when using ES modules, because you'll // explicitly import sources from your specs. srcFiles: [], - specDir: ".", + specDir: "./spec", specFiles: [ - "spec/**/*[sS]pec.?(m)js" + "**/*[sS]pec.?(m)js" ], helpers: [ "spec/helpers/**/*.?(m)js" @@ -33,6 +33,7 @@ export default { hostname: "localhost", browser: { - name: "firefox" + name: "firefox", + headless: true } };