Skip to content
Open
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
11 changes: 9 additions & 2 deletions .github/workflows/test-main-matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,20 @@ permissions:

jobs:
test_main_matrix:
name: Tests [Node ${{ matrix.node_version }}]
name: Tests [${{ matrix.os }}, Node ${{ matrix.node_version }}]
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
node_version: ['18', '20', '22', '24', '26']
os: [ubuntu-latest]
include:
# tests/integration and @callstack/repack-expo are not green on Windows
# yet, so those two workspaces are excluded there until they are. Every
# other workspace passes on Windows and stays covered.
- os: windows-latest
node_version: '24'
filter: --filter=!integration-test --filter=!@callstack/repack-expo

steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # tag=v4.2.2
Expand All @@ -28,4 +35,4 @@ jobs:
node-version: ${{ matrix.node_version }}

- name: Run tests
run: pnpm test
run: pnpm turbo run test ${{ matrix.filter }}
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import type { EventEmitter } from 'node:events';
import path from 'node:path';
import { Worker } from 'node:worker_threads';
import { fs, vol } from 'memfs';
import type { Reporter } from '../../../logging/types.js';
Expand Down Expand Up @@ -109,6 +110,9 @@ describe('getSource', () => {
await expect(
createCompiler().getSource('src/index.js', 'ios')
).resolves.toBe('source under the project root');
expect(readFile).toHaveBeenCalledWith('/project/src/index.js', 'utf8');
expect(readFile).toHaveBeenCalledWith(
path.join('/project', 'src/index.js'),
'utf8'
);
});
});