Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
build:
strategy:
matrix:
node: [18, 20]
node: ['18', '20.17.0']
name: Build CJS
runs-on: ubuntu-latest
steps:
Expand All @@ -23,7 +23,7 @@ jobs:
with:
node-version: ${{ matrix.node }}
cache: yarn
- run: yarn install --ignore-scripts
- run: yarn install --ignore-scripts --frozen-lockfile
- run: npx ts-node scripts/init.ts
- run: yarn build:cjs
- uses: actions/cache/save@v4
Expand Down Expand Up @@ -165,7 +165,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node: [18, 20]
node: ['18', '20.17.0']
steps:
- uses: actions/setup-node@v4
with:
Expand All @@ -176,6 +176,7 @@ jobs:
path: ./
key: web3-${{ matrix.node }}-${{github.sha}}
- run: yarn test:unit
continue-on-error: ${{ matrix.node == '20.17.0' }}
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
Expand Down
1 change: 1 addition & 0 deletions packages/web3-core/test/config/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,5 @@ module.exports = {
* This can be done programmatically using jest.resetModules().
*/
resetModules: true,
testTimeout: 600000,
};
1 change: 1 addition & 0 deletions packages/web3-eth-abi/test/config/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,5 @@ module.exports = {
* This can be done programmatically using jest.resetModules().
*/
resetModules: true,
testTimeout: 600000,
};
1 change: 1 addition & 0 deletions packages/web3-eth-contract/test/config/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,5 @@ module.exports = {
* This can be done programmatically using jest.resetModules().
*/
resetModules: true,
testTimeout: 600000,
};
3 changes: 0 additions & 3 deletions packages/web3-eth-ens/test/integration/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,3 @@ along with web3.js. If not, see <http://www.gnu.org/licenses/>.
// eslint-disable-next-line @typescript-eslint/no-require-imports
require('../config/setup');

const jestTimeout = 30000;

jest.setTimeout(jestTimeout);
1 change: 1 addition & 0 deletions packages/web3-eth-personal/test/config/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,5 @@ module.exports = {
* This can be done programmatically using jest.resetModules().
*/
resetModules: true,
testTimeout: 600000,
};
3 changes: 0 additions & 3 deletions packages/web3-eth/test/e2e/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,3 @@ along with web3.js. If not, see <http://www.gnu.org/licenses/>.
// eslint-disable-next-line @typescript-eslint/no-require-imports
require('../config/setup');

const jestTimeout = 30000; // Sometimes `in3` takes long time because of its decentralized nature.

jest.setTimeout(jestTimeout);
1 change: 1 addition & 0 deletions packages/web3-net/test/config/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,5 @@ module.exports = {
* This can be done programmatically using jest.resetModules().
*/
resetModules: true,
testTimeout: 600000,
};
1 change: 1 addition & 0 deletions packages/web3-providers-ipc/test/config/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,5 @@ module.exports = {
resetModules: true,

resetMocks: true,
testTimeout: 600000,
};
1 change: 1 addition & 0 deletions packages/web3-types/test/config/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,5 @@ module.exports = {
* This can be done programmatically using jest.resetModules().
*/
resetModules: true,
testTimeout: 600000,
};
1 change: 1 addition & 0 deletions packages/web3-utils/test/config/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,5 @@ module.exports = {
* This can be done programmatically using jest.resetModules().
*/
resetModules: true,
testTimeout: 600000,
};
1 change: 1 addition & 0 deletions packages/web3-validator/test/config/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,5 @@ module.exports = {
* This can be done programmatically using jest.resetModules().
*/
resetModules: true,
testTimeout: 600000,
};
1 change: 1 addition & 0 deletions packages/web3/test/config/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,5 @@ module.exports = {
* This can be done programmatically using jest.resetModules().
*/
resetModules: true,
testTimeout: 600000,
};
3 changes: 0 additions & 3 deletions packages/web3/test/e2e/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,3 @@ along with web3.js. If not, see <http://www.gnu.org/licenses/>.
// eslint-disable-next-line @typescript-eslint/no-require-imports
require('../config/setup');

const jestTimeout = 30000; // Sometimes `in3` takes long time because of its decentralized nature.

jest.setTimeout(jestTimeout);
3 changes: 0 additions & 3 deletions packages/web3/test/integration/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,3 @@ along with web3.js. If not, see <http://www.gnu.org/licenses/>.
// eslint-disable-next-line @typescript-eslint/no-require-imports
require('../config/setup');

const jestTimeout = 30000; // Sometimes `in3` takes long time because of its decentralized nature.

jest.setTimeout(jestTimeout);
3 changes: 0 additions & 3 deletions packages/web3/test/stress/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,3 @@ along with web3.js. If not, see <http://www.gnu.org/licenses/>.
// eslint-disable-next-line @typescript-eslint/no-require-imports
require('../config/setup');

const jestTimeout = 300000;

jest.setTimeout(jestTimeout);
1 change: 1 addition & 0 deletions templates/jest.config.js.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,5 @@ module.exports = {
* This can be done programmatically using jest.resetModules().
*/
resetModules: true,
testTimeout: 600000,
};