-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "chore: replace karma with intern"
This reverts commit b664b4a.
- Loading branch information
Nick Woodward
committed
Apr 4, 2019
1 parent
176e9d7
commit 6f70ffb
Showing
27 changed files
with
188 additions
and
118 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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,82 @@ | ||
const common = require('./rollup.common.config.js'); | ||
|
||
module.exports = (config) => { | ||
const lastTwoVersions = ['Chrome', 'Firefox', 'MicrosoftEdge', 'Safari'].reduce((output, browser) => { | ||
// TODO: For some reason Safari 12 throws a 500 error... | ||
output[`${browser}Latest`] = { | ||
base: 'SauceLabs', | ||
browserName: browser.toLowerCase(), | ||
version: browser === 'Safari' ? 'latest-1' : 'latest' | ||
}; | ||
|
||
output[`${browser}Prior`] = { | ||
base: 'SauceLabs', | ||
browserName: browser.toLowerCase(), | ||
version: browser === 'Safari' ? 'latest-2' : 'latest-1' | ||
}; | ||
return output; | ||
}, {}); | ||
|
||
const customLaunchers = Object.assign(lastTwoVersions, { | ||
InternetExplorer11: { | ||
base: 'SauceLabs', | ||
browserName: 'internet explorer', | ||
version: '11' | ||
} | ||
}); | ||
|
||
config.set({ | ||
basePath: '', | ||
|
||
frameworks: [ | ||
'mocha' | ||
], | ||
|
||
files: [ | ||
'test/index.js' | ||
], | ||
|
||
client: { | ||
mocha: { | ||
timeout: 10000 | ||
} | ||
}, | ||
|
||
preprocessors: { | ||
'test/index.js': ['rollup', 'sourcemap'] | ||
}, | ||
|
||
rollupPreprocessor: common({ | ||
minified: false, | ||
es6: false, | ||
tests: true, | ||
coverage: false | ||
}), | ||
|
||
reporters: ['mocha', 'coverage'], | ||
|
||
mochaReporter: { | ||
output: 'minimal', | ||
showDiff: true | ||
}, | ||
|
||
port: 9876, | ||
|
||
colors: true, | ||
|
||
logLevel: config.LOG_INFO, | ||
|
||
sauceLabs: { | ||
testName: 'salte-auth/salte-auth', | ||
tunnelIdentifier: process.env.TRAVIS_JOB_NUMBER, | ||
startConnect: false | ||
}, | ||
|
||
customLaunchers: customLaunchers, | ||
browsers: Object.keys(customLaunchers), | ||
captureTimeout: 120000, | ||
browserNoActivityTimeout: 120000, | ||
|
||
singleRun: true | ||
}); | ||
} |
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 |
---|---|---|
@@ -0,0 +1,54 @@ | ||
const common = require('./rollup.common.config.js'); | ||
|
||
module.exports = (config) => { | ||
config.set({ | ||
basePath: '', | ||
|
||
frameworks: [ | ||
'mocha' | ||
], | ||
|
||
files: [ | ||
'test/index.js' | ||
], | ||
|
||
preprocessors: { | ||
'test/index.js': ['rollup', 'sourcemap'], | ||
}, | ||
|
||
rollupPreprocessor: common({ | ||
minified: false, | ||
es6: false, | ||
tests: true, | ||
coverage: true | ||
}), | ||
|
||
reporters: ['mocha', 'coverage'], | ||
|
||
coverageReporter: { | ||
dir: 'coverage', | ||
reporters: [ | ||
{ type: 'text' }, | ||
{ type: 'lcovonly', subdir: '.', file: 'lcov.info' } | ||
] | ||
}, | ||
|
||
mochaReporter: { | ||
showDiff: true | ||
}, | ||
|
||
port: 9876, | ||
|
||
colors: true, | ||
|
||
logLevel: config.LOG_INFO, | ||
|
||
autoWatch: true, | ||
|
||
browsers: ['ChromeHeadless'], | ||
|
||
browserNoActivityTimeout: 120000, | ||
|
||
singleRun: false | ||
}); | ||
} |
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
extends: ../.eslintrc.yml | ||
plugins: | ||
- mocha | ||
env: | ||
mocha: true |
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
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
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
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
Oops, something went wrong.