Skip to content

Commit

Permalink
Fix test timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
jridgewell committed Jun 28, 2024
1 parent c84becd commit 5678dbc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
1 change: 0 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ jobs:
node-version: ${{ matrix.node-version }}
- name: Test legacy node
run: |
npm install [email protected]
npm run test:only
- name: Benchmark
run: |
Expand Down
7 changes: 4 additions & 3 deletions test/codec.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ describe('sourcemap-codec', () => {
});

it('sorts during decoding', () => {
const mappings = [
const mappings: SourceMapMappings = [
[[1], [2], [3]],
[[1], [3], [2]],
[[2], [1], [3]],
Expand Down Expand Up @@ -190,8 +190,9 @@ describe('sourcemap-codec', () => {
files.forEach((file) => {
if (path.extname(file) !== '.map') return;

it(file, () => {
const { mappings } = JSON.parse(fs.readFileSync(path.join(dir, file)));
it(file, function () {
this.timeout(5000);
const { mappings } = JSON.parse(fs.readFileSync(path.join(dir, file), 'utf8'));
assert.deepEqual(encode(decode(mappings)), mappings);
});
});
Expand Down

0 comments on commit 5678dbc

Please sign in to comment.