-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
140 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,10 @@ | |
<meta charset="utf-8" /> | ||
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico" /> | ||
<link rel="stylesheet" href="/index.css" /> | ||
<link | ||
rel="stylesheet" | ||
href="https://unpkg.com/@spectrum-css/[email protected]/dist/index-vars.css" | ||
/> | ||
<meta | ||
name="viewport" | ||
content="width=device-width, initial-scale=1, shrink-to-fit=no" | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,34 @@ | ||
#!/usr/bin/env node | ||
|
||
const glob = require('glob'); | ||
const createTestCafe = require('testcafe'); | ||
const yargs = require('yargs/yargs'); | ||
const { hideBin } = require('yargs/helpers'); | ||
const glob = require("glob"); | ||
const createTestCafe = require("testcafe"); | ||
const yargs = require("yargs/yargs"); | ||
const { hideBin } = require("yargs/helpers"); | ||
|
||
const argv = yargs(hideBin(process.argv)).option('exclude', { | ||
type: 'array', | ||
default: [] | ||
const argv = yargs(hideBin(process.argv)).option("exclude", { | ||
type: "array", | ||
default: [] | ||
}).argv; | ||
|
||
glob('test/functional/specs/**/*.js', (err, files) => { | ||
if (err) { | ||
console.error(err); | ||
process.exit(1); | ||
} | ||
glob("test/functional/specs/**/*.js", (err, files) => { | ||
if (err) { | ||
console.error(err); | ||
process.exit(1); | ||
} | ||
|
||
const testFiles = files.filter(file => { | ||
const shouldExclude = argv.exclude.some(excludedDir => file.includes(excludedDir)); | ||
return !shouldExclude; | ||
}); | ||
const testFiles = files.filter(file => { | ||
const shouldExclude = argv.exclude.some(excludedDir => | ||
file.includes(excludedDir) | ||
); | ||
return !shouldExclude; | ||
}); | ||
|
||
createTestCafe().then(testcafe => { | ||
const runner = testcafe.createRunner(); | ||
runner | ||
.src(testFiles) | ||
.browsers('chrome') | ||
.run() | ||
.then(() => testcafe.close()); | ||
}); | ||
createTestCafe().then(testcafe => { | ||
const runner = testcafe.createRunner(); | ||
runner | ||
.src(testFiles) | ||
.browsers("chrome") | ||
.run() | ||
.then(() => testcafe.close()); | ||
}); | ||
}); |