-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'v0.25-dev' into ci/disable-draft-runs
- Loading branch information
Showing
26 changed files
with
571 additions
and
271 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 |
---|---|---|
|
@@ -35,5 +35,4 @@ jobs: | |
secrets: inherit | ||
with: | ||
package: 'dash' | ||
start-local-network: true | ||
install-browsers: 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 |
---|---|---|
|
@@ -35,5 +35,5 @@ jobs: | |
secrets: inherit | ||
with: | ||
package: '@dashevo/wallet-lib' | ||
start-local-network: true | ||
|
||
install-browsers: true |
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,16 @@ | ||
const options = require('./options'); | ||
|
||
module.exports = (config) => { | ||
config.set({ | ||
...options, | ||
logLevel: config.LOG_INFO, | ||
files: [ | ||
'../src/**/*.spec.ts', | ||
'../src/test/karma/bootstrap.ts', | ||
], | ||
preprocessors: { | ||
'../src/**/*.spec.ts': ['webpack'], | ||
'../src/test/karma/bootstrap.ts': ['webpack'], | ||
}, | ||
}); | ||
}; |
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,16 @@ | ||
const options = require('./options'); | ||
|
||
module.exports = (config) => { | ||
config.set({ | ||
...options, | ||
logLevel: config.LOG_INFO, | ||
files: [ | ||
'../src/test/karma/bootstrap.ts', | ||
'../tests/functional/sdk.js', | ||
], | ||
preprocessors: { | ||
'../src/test/karma/bootstrap.ts': ['webpack'], | ||
'../tests/functional/sdk.js': ['webpack'], | ||
}, | ||
}); | ||
}; |
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,57 @@ | ||
/* eslint-disable import/no-extraneous-dependencies */ | ||
const webpack = require('webpack'); | ||
const dotenvSafe = require('dotenv-safe'); | ||
|
||
const karmaMocha = require('karma-mocha'); | ||
const karmaMochaReporter = require('karma-mocha-reporter'); | ||
const karmaChai = require('karma-chai'); | ||
const karmaChromeLauncher = require('karma-chrome-launcher'); | ||
const karmaWebpack = require('karma-webpack'); | ||
const webpackBaseConfig = require('../webpack.base.config'); | ||
|
||
let env = {}; | ||
if (process.env.LOAD_ENV) { | ||
const dotenvResult = dotenvSafe.config(); | ||
if (dotenvResult.error) { | ||
throw dotenvResult.error; | ||
} | ||
env = dotenvResult.parsed; | ||
} | ||
|
||
module.exports = { | ||
frameworks: ['mocha', 'chai', 'webpack'], | ||
webpack: { | ||
...webpackBaseConfig, | ||
mode: 'development', | ||
plugins: [ | ||
...webpackBaseConfig.plugins, | ||
new webpack.EnvironmentPlugin( | ||
env, | ||
), | ||
], | ||
}, | ||
reporters: ['mocha'], | ||
port: 9876, | ||
colors: true, | ||
autoWatch: false, | ||
browsers: ['chromeWithoutSecurity'], | ||
singleRun: false, | ||
concurrency: Infinity, | ||
browserNoActivityTimeout: 7 * 60 * 1000, // 30000 default | ||
browserDisconnectTimeout: 3 * 2000, // 2000 default | ||
pingTimeout: 3 * 5000, // 5000 default | ||
plugins: [ | ||
karmaMocha, | ||
karmaMochaReporter, | ||
karmaChai, | ||
karmaChromeLauncher, | ||
karmaWebpack, | ||
], | ||
customLaunchers: { | ||
chromeWithoutSecurity: { | ||
base: 'ChromeHeadless', | ||
flags: ['--allow-insecure-localhost'], | ||
displayName: 'Chrome w/o security', | ||
}, | ||
}, | ||
}; |
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.