dependencies and changes to test in firefox headlessly

This commit is contained in:
Jack Case
2025-12-09 23:34:27 +00:00
parent 5ddb857cfa
commit 31a184be14
4 changed files with 12 additions and 5 deletions

View File

@@ -2,5 +2,6 @@
"image": "mcr.microsoft.com/devcontainers/universal:2", "image": "mcr.microsoft.com/devcontainers/universal:2",
"features": { "features": {
"ghcr.io/devcontainers-community/npm-features/typescript:1": {} "ghcr.io/devcontainers-community/npm-features/typescript:1": {}
} },
"postCreateCommand": "apt-get update && apt-get install -y firefox xvfb libxss1 libappindicator1 libindicator7"
} }

View File

@@ -12,6 +12,6 @@
"scripts": { "scripts": {
"build": "dev-scripts/build-extension.sh", "build": "dev-scripts/build-extension.sh",
"pretest": "tsc", "pretest": "tsc",
"test": "jasmine-browser-runner runSpecs" "test": "xvfb-run -a jasmine-browser-runner runSpecs"
} }
} }

View File

@@ -0,0 +1,5 @@
describe("hello", function() {
it("world", function() {
expect(true).toBe(true)
})
})

View File

@@ -3,9 +3,9 @@ export default {
// 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: ".", specDir: "./spec",
specFiles: [ specFiles: [
"spec/**/*[sS]pec.?(m)js" "**/*[sS]pec.?(m)js"
], ],
helpers: [ helpers: [
"spec/helpers/**/*.?(m)js" "spec/helpers/**/*.?(m)js"
@@ -33,6 +33,7 @@ export default {
hostname: "localhost", hostname: "localhost",
browser: { browser: {
name: "firefox" name: "firefox",
headless: true
} }
}; };