Skip to content

Commit

Permalink
[tests] Added NODE_OPTIONS=--openssl-legacy-provider
Browse files Browse the repository at this point in the history
Added this option in package.json to
facilitate development and testing.
  • Loading branch information
nemesifier committed Nov 14, 2023
1 parent da928c1 commit 399171c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,11 @@ jobs:

- name: Build OpenWISP WiFi Login Pages
run: |
export NODE_OPTIONS=--openssl-legacy-provider
yarn setup
webpack --mode development --progress --config config/webpack.config.js
- name: Running OpenWISP WiFi Login Pages
run: |
export NODE_OPTIONS=--openssl-legacy-provider
yarn start &
- name: Running OpenWISP Radius
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@
},
"scripts": {
"build": "npm run setup && webpack --mode production --progress --config config/webpack.config.js",
"client": "npm run setup && webpack serve --host 0.0.0.0 --mode development --config config/webpack.config.js",
"coverage": "jest --coverage --testPathIgnorePatterns=/browser-test/",
"client": "export NODE_OPTIONS=--openssl-legacy-provider npm run setup && webpack serve --host 0.0.0.0 --mode development --config config/webpack.config.js",
"coverage": "jest --coverage --testPathIgnorePatterns=/browser-test/",
"coveralls": "test -f ./coverage/lcov.info && cat ./coverage/lcov.info | coveralls || echo 'no coverage file found'",
"add-org": "node config/add-org.js",
"server": "npm run setup && nodemon server/start.js",
Expand Down

0 comments on commit 399171c

Please sign in to comment.