dependencies and changes to test in firefox headlessly
This commit is contained in:
@@ -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"
|
||||||
}
|
}
|
||||||
@@ -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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,5 @@
|
|||||||
|
describe("hello", function() {
|
||||||
|
it("world", function() {
|
||||||
|
expect(true).toBe(true)
|
||||||
|
})
|
||||||
|
})
|
||||||
@@ -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
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user