Update jest config

This commit is contained in:
Timothy Warren 2018-04-10 17:04:30 -04:00
parent 5b6cd08c05
commit 730c0bf34b
2 changed files with 5 additions and 10 deletions

View File

@ -59,10 +59,10 @@
"dist": "yarn run build && build", "dist": "yarn run build && build",
"electron-start": "node src/electron/wait-inferno", "electron-start": "node src/electron/wait-inferno",
"electron": "electron .", "electron": "electron .",
"fix": "set NODE_DIR=src/ eslint --fix src/**/*.js", "fix": "eslint --fix src/**/*.js",
"lint": "set NODE_DIR=src/ eslint src/**/*.js", "lint": "eslint src/**/*.js",
"pack": "build --dir", "pack": "build --dir",
"postinstall": "set NODE_DIR=src/ electron-builder install-app-deps", "postinstall": "electron-builder install-app-deps",
"precommit": "yarn lint", "precommit": "yarn lint",
"react-start": "node scripts/start.js", "react-start": "node scripts/start.js",
"start": "nf start -p 3000", "start": "nf start -p 3000",
@ -78,8 +78,7 @@
"<rootDir>/config/polyfills.js" "<rootDir>/config/polyfills.js"
], ],
"testMatch": [ "testMatch": [
"<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}", "<rootDir>/__tests__/**/*.{js,jsx,mjs}"
"<rootDir>/src/**/?(*.)(spec|test).{js,jsx,mjs}"
], ],
"testEnvironment": "node", "testEnvironment": "node",
"testURL": "http://localhost", "testURL": "http://localhost",

View File

@ -1,8 +1,4 @@
//const fs = require('fs'); const { ipcMain } = require('electron');
const { /* app, dialog, */ ipcMain } = require('electron');
// const { ExifTool } = require('exiftool-vendored');
// const exiftool = new ExifTool();
ipcMain.on('dropped-files', () => { ipcMain.on('dropped-files', () => {