Update tests

This commit is contained in:
Nathan Bierema 2022-11-06 15:37:22 -05:00
parent ef64cf37c3
commit 46a37ec577
3 changed files with 3 additions and 3 deletions

View File

@ -22,7 +22,7 @@
"test:app": "cross-env BABEL_ENV=test jest test/app", "test:app": "cross-env BABEL_ENV=test jest test/app",
"test:chrome": "jest test/chrome", "test:chrome": "jest test/chrome",
"test:electron": "pnpm run build:test:electron:fixture && jest test/electron", "test:electron": "pnpm run build:test:electron:fixture && jest test/electron",
"test": "pnpm run test:app && pnpm run build:chrome && pnpm run test:chrome && pnpm run test:electron", "test": "pnpm run test:app && pnpm run build:extension && pnpm run build:chrome && pnpm run test:chrome && pnpm run test:electron",
"build:test:electron:fixture": "webpack --config test/electron/fixture/webpack.config.js", "build:test:electron:fixture": "webpack --config test/electron/fixture/webpack.config.js",
"type-check": "tsc --noEmit" "type-check": "tsc --noEmit"
}, },

View File

@ -5,7 +5,7 @@ import chromedriver from 'chromedriver';
import { switchMonitorTests, delay } from '../utils/e2e'; import { switchMonitorTests, delay } from '../utils/e2e';
const port = 9515; const port = 9515;
const path = resolve(__dirname, '..', '..', 'build', 'extension'); const path = resolve(__dirname, '..', '..', 'dist');
const extensionId = 'lmhkpmbekcpmknklioeibfkpmmfibljd'; const extensionId = 'lmhkpmbekcpmknklioeibfkpmmfibljd';
const actionsPattern = const actionsPattern =
/^@@INIT(.|\n)+@@reduxReactRouter\/routerDidChange(.|\n)+@@reduxReactRouter\/initRoutes(.|\n)+$/; /^@@INIT(.|\n)+@@reduxReactRouter\/routerDidChange(.|\n)+@@reduxReactRouter\/initRoutes(.|\n)+$/;

View File

@ -4,7 +4,7 @@ const { app, BrowserWindow, session } = require('electron');
app.on('window-all-closed', app.quit); app.on('window-all-closed', app.quit);
app.whenReady().then(async () => { app.whenReady().then(async () => {
await session.defaultSession.loadExtension( await session.defaultSession.loadExtension(
path.join(__dirname, '../../../build/extension'), path.join(__dirname, '../../../dist'),
{ allowFileAccess: true } { allowFileAccess: true }
); );