diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 0000000..17b3f18 --- /dev/null +++ b/.eslintignore @@ -0,0 +1,3 @@ +node_modules +coverage +__fixtures__ diff --git a/jest.config.js b/jest.config.js new file mode 100644 index 0000000..95495de --- /dev/null +++ b/jest.config.js @@ -0,0 +1,3 @@ +module.exports = { + testEnvironment: 'node' +} diff --git a/package.json b/package.json index f049075..2b80240 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "Transform `process.env.FIELD` into environment variables with dotenv.", "main": "index.js", "scripts": { - "pretest": "eslint *.js", + "pretest": "eslint .", "test": "jest", "posttest": "jest --coverage" }, diff --git a/test.js b/test.js index 3952012..1a468f2 100644 --- a/test.js +++ b/test.js @@ -1,4 +1,4 @@ -/* eslint-env mocha */ +/* eslint-env jest */ const pluginTester = require('babel-plugin-tester')