Skip to content
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
12 changes: 0 additions & 12 deletions .babelrc

This file was deleted.

14 changes: 14 additions & 0 deletions .babelrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
"use strict";

module.exports = {
presets: [
[
"@babel/preset-env",
{
targets: {
node: "current"
}
}
]
]
};
32 changes: 22 additions & 10 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,27 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: lts/*
cache: yarn
- run: yarn --frozen-lockfile
- run: yarn lint
cache: npm
- run: npm ci
- run: npm run lint
test:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
node-version: [6.x, 8.x, 10.x, 12.x, 14.x, 16.x, 18.x, 20.x, 22.x, 24.x]
node-version: [
# Node.js@6 is fully broken for testing, npm can't install dependecies, babel is broken due broken mapping new features with Node.js version, jest breaks randomly and crashes
# 6.x,
8.x,
10.x,
12.x,
14.x,
16.x,
18.x,
20.x,
22.x,
24.x
]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
Expand All @@ -45,15 +57,15 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
architecture: ${{ steps.calculate_architecture.outputs.result }}
cache: yarn
cache: npm
- name: Install dependencies
run: yarn --frozen-lockfile --ignore-engines
if: matrix.node-version == '6.x' || matrix.node-version == '8.x' || matrix.node-version == '10.x' || matrix.node-version == '12.x' || matrix.node-version == '14.x' || matrix.node-version == '16.x' || matrix.node-version == '18.x'
run: npm install
if: matrix.node-version == '8.x' || matrix.node-version == '10.x' || matrix.node-version == '12.x' || matrix.node-version == '14.x'
- name: Install dependencies
run: yarn --frozen-lockfile
if: matrix.node-version != '6.x' && matrix.node-version != '8.x' && matrix.node-version != '10.x' && matrix.node-version != '12.x' && matrix.node-version != '14.x' && matrix.node-version != '16.x' && matrix.node-version != '18.x'
run: npm ci
if: matrix.node-version != '8.x' && matrix.node-version != '10.x' && matrix.node-version != '12.x' && matrix.node-version != '14.x'
- name: Run tests with coverage
run: yarn test --ci --coverage
run: npm run test -- --ci --coverage
- uses: codecov/codecov-action@v5
with:
flags: integration
Expand Down
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
package.json
package-lock.json
2 changes: 1 addition & 1 deletion lib/__tests__/SyncBailHook.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ describe("SyncBailHook", () => {
expect(h1.call()).toBe("B");
expect(mockCall1).toHaveBeenCalledTimes(1);
expect(mockCall2).toHaveBeenCalledTimes(1);
expect(mockCall3).toHaveBeenCalledTimes(0);
expect(mockCall3).not.toHaveBeenCalled();
});

it("should allow to intercept calls", () => {
Expand Down
Loading