Skip to content

Commit

Permalink
Try fixing cypress tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Xon committed Aug 6, 2024
1 parent fec7336 commit a598524
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/actions-scripts/puppeteer.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const path = require('path');
const { once } = require('events');

const puppeteer = require('puppeteer');
const pixelmatch = await import('pixelmatch');
const pixelmatch = import('pixelmatch');
const { PNG } = require('pngjs');

const server = require('../../server');
Expand Down
2 changes: 1 addition & 1 deletion .github/actions-scripts/selenium.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const path = require('path');
const { readFileSync, writeFileSync, mkdirSync } = require('fs');
const { once } = require('events');

const pixelmatch = await import(('pixelmatch');
const pixelmatch = import('pixelmatch');
const { PNG } = require('pngjs');
const {
Builder,
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
"test:unit:coverage": "NODE_ENV=test nyc --reporter=lcov --reporter=text --reporter=text-summary mocha",
"test:e2e": "run-p --race start cypress:run",
"js:watch": "cross-env NODE_ENV=development node server.js",
"js:build": "rm -rf public/types ; mkdir -p public/types ; webpack --config webpack.config.prod.js",
"js:build": "webpack --config webpack.config.prod.js",
"js:build-dev": "rm -rf public/types ; mkdir -p public/types ; webpack --config webpack.config.prod.js",
"css:watch": "nodemon -e scss -x \"npm run css:build\"",
"css:build": "run-s css:sass css:prefix css:min",
"css:sass": "sass -I scss src/styles/base.scss public/assets/styles/base.css && sass -I scss src/styles/choices.scss public/assets/styles/choices.css",
Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"declaration": true,
"declarationDir": "./public/types/",
"declarationMap": true,
"composite": true,
"sourceMap": true,
"module": "commonjs",
"moduleResolution": "node",
Expand Down

0 comments on commit a598524

Please sign in to comment.