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 22ba75e
Showing 1 changed file with 4 additions and 3 deletions.
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(500);
const { mappings } = JSON.parse(fs.readFileSync(path.join(dir, file), 'utf8'));
assert.deepEqual(encode(decode(mappings)), mappings);
});
});
Expand Down

0 comments on commit 22ba75e

Please sign in to comment.