mirror of
https://github.com/bobwen-dev/react-templates
synced 2025-04-12 00:56:39 +02:00
add wallaby
move to master
This commit is contained in:
parent
87ed2032fe
commit
fdc000cc46
@ -18,7 +18,7 @@ script:
|
||||
|
||||
branches:
|
||||
only:
|
||||
- gh-pages
|
||||
- master
|
||||
#after_success:
|
||||
# - npm run coveralls
|
||||
|
||||
|
@ -665,9 +665,9 @@ Copyright (c) 2015 Wix. Licensed under the MIT license.
|
||||
|
||||
[npm-image]: https://img.shields.io/npm/v/react-templates.svg?style=flat-square
|
||||
[npm-url]: https://npmjs.org/package/react-templates
|
||||
[travis-image]: https://img.shields.io/travis/wix/react-templates/gh-pages.svg?style=flat-square
|
||||
[travis-image]: https://img.shields.io/travis/wix/react-templates/master.svg?style=flat-square
|
||||
[travis-url]: https://travis-ci.org/wix/react-templates
|
||||
[coveralls-image]: https://img.shields.io/coveralls/wix/react-templates/gh-pages.svg?style=flat-square
|
||||
[coveralls-url]: https://coveralls.io/r/wix/react-templates?branch=gh-pages
|
||||
[coveralls-image]: https://img.shields.io/coveralls/wix/react-templates/master.svg?style=flat-square
|
||||
[coveralls-url]: https://coveralls.io/r/wix/react-templates?branch=master
|
||||
[downloads-image]: http://img.shields.io/npm/dm/react-templates.svg?style=flat-square
|
||||
[downloads-url]: https://npmjs.org/package/react-templates
|
||||
|
45
wallaby.js
Normal file
45
wallaby.js
Normal file
@ -0,0 +1,45 @@
|
||||
/*eslint object-shorthand:0*/
|
||||
'use strict'
|
||||
// const path = require('path')
|
||||
|
||||
module.exports = function (/*wallaby*/) {
|
||||
return {
|
||||
files: [
|
||||
'src/**/*.js'
|
||||
// {pattern: 'lib/data/*.*', instrument: false},
|
||||
// 'lib/formatters/*.js',
|
||||
// {pattern: 'test/testData/**/*.*', instrument: false},
|
||||
// {pattern: 'test/src/utils/*.js', instrument: false}
|
||||
],
|
||||
tests: [
|
||||
'test/**/*.unit.js'
|
||||
],
|
||||
testFramework: 'mocha',
|
||||
// debug: true,
|
||||
// reportConsoleErrorAsError: true,
|
||||
// maxConsoleMessagesPerTest: 10000,
|
||||
env: {
|
||||
// use 'node' type to use node.js or io.js
|
||||
type: 'node',
|
||||
// if runner property is not set, then wallaby.js embedded node/io.js version is used
|
||||
// you can specifically set the node version by specifying 'node' (or any other command)
|
||||
// that resolves your default node version or just specify the path
|
||||
// your node installation, like
|
||||
runner: process.env.NODE_HOME
|
||||
// runner: '/Users/idok/.nvm/versions/node/v6.9.4/bin/node'
|
||||
//runner: '/usr/local/bin/jasmine-node'
|
||||
// or
|
||||
// runner: 'path to the desired node version'
|
||||
// params: {
|
||||
// runner: '--harmony --harmony_arrow_functions',
|
||||
// env: 'PARAM1=true;PARAM2=false'
|
||||
// }
|
||||
},
|
||||
setup: function (w) {
|
||||
// require(path.resolve(__dirname, './spec/support/unit-init.js'))
|
||||
// require('jasmine-expect')
|
||||
// w.testFramework.addMatchers(require('./test/src/utils/customMatchers'))
|
||||
w.testFramework.DEFAULT_TIMEOUT_INTERVAL = 2500
|
||||
}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user