Add initial test stub

This commit is contained in:
Thomas Hughes
2019-09-20 15:18:26 -05:00
parent 3d8e310430
commit 97fca7f8d6
3 changed files with 4 additions and 2 deletions

View File

@@ -4,8 +4,8 @@
"description": "Generate a release",
"main": "dist/index.js",
"scripts": {
"lint": "eslint 'src/**.js' 'test/**.js' --fix",
"test": "eslint 'src/**.js' 'test/**.js' --fix && jest",
"lint": "eslint 'src/**.js' 'tests/**.js' --fix",
"test": "eslint 'src/**.js' 'tests/**.js' --fix && jest",
"build": "ncc build src/main.js",
"precommit": "npm run build && git add dist/"
},

View File

2
tests/main.test.js Normal file
View File

@@ -0,0 +1,2 @@
/* eslint-disable no-undef */
test('that tests work', () => {});