Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.

Commit

Permalink
Merge pull request #91 from alleyinteractive/feature/testing-framework
Browse files Browse the repository at this point in the history
Install Jest, write first three tests
  • Loading branch information
ostowe authored Jun 14, 2017
2 parents 85ce1f4 + 0c0d084 commit d088826
Show file tree
Hide file tree
Showing 20 changed files with 2,401 additions and 2,308 deletions.
4 changes: 2 additions & 2 deletions config/.babelrc → .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"presets": [
["env", {
"targets": {
"browsers": "last 3 versions",
"node": "6.5",
},
}],
}]
],
}
8 changes: 6 additions & 2 deletions config/.eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,18 @@
// Optional Enables
"webextensions": false, // Enable if using Web Extensions
// Optional Testing Frameworks
"jasmine": false, // Enable if using Jasmine testing framework
"jasmine": true, // Enable if using Jasmine testing framework
"protractor": false, // Enable if using Protractor testing framework
"mocha": false // Enable if using Mocha testing framework
"mocha": false, // Enable if using Mocha testing framework
"jest/globals": true
},
"globals": {
"jQuery": true,
"angular": false, // Enable if using Angular
},
"plugins": [
"jest"
],
// Do NOT change these rules
"rules": {
"indent": [2, 2, {"SwitchCase": 1}],
Expand Down
14 changes: 1 addition & 13 deletions config/webpack-node.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,19 +54,7 @@ module.exports = function getConfig(env) {
{
test: /\.js$/,
exclude: /node_modules/,
use: {
loader: 'babel-loader',
options: {
babelrc: false,
presets: [
['env', {
targets: {
node: 6.5,
},
}],
],
},
},
use: 'babel-loader',
},
],
},
Expand Down
Loading

0 comments on commit d088826

Please sign in to comment.