diff --git a/base.js b/base.js index 7b0c131..c4a0e4b 100644 --- a/base.js +++ b/base.js @@ -200,8 +200,8 @@ module.exports = { target: "./app/server", }, { - from: "./app", - target: "./test", + from: "./test", + target: "./app", }, { from: "./src/server", @@ -212,8 +212,8 @@ module.exports = { target: "./src/server", }, { - from: "./src", - target: "./test", + from: "./test", + target: "./src", }, ], }, diff --git a/tests.js b/tests.js index 7d73ec0..69b0230 100644 --- a/tests.js +++ b/tests.js @@ -8,6 +8,8 @@ module.exports = { }, rules: { /* eslint-enable sort-keys */ + // chai uses these as assertions + "babel/no-unused-expressions": "off", // In order to make mocks more condensed, single line blocks are allowed in tests "brace-style": ["error", "1tbs", { allowSingleLine: true }], // mocha blocks are nested all the way down @@ -15,13 +17,9 @@ module.exports = { // Can increase the readability of a test if simple mocking functions are in one line "max-statements-per-line": ["error", { max: 2 }], // Allows empty catch blocks in try clauses - "no-empty": "error", + "no-empty": "off", // If you want to test for thrown errors in a constructor function, it's common to ignore the result // @see https://github.com/peerigon/clockodo/pull/1#discussion_r180795825 "no-new": "off", - // Sometimes it's necessary to check for undefined explicitly - "no-undefined": "off", - // chai uses these as assertions - "no-unused-expressions": "off", } };