Skip to content

Instantly share code, notes, and snippets.

@marchermans
Last active May 8, 2019 17:02
Show Gist options
  • Save marchermans/b6e5ec3306d863039a12dd77ee24eb5b to your computer and use it in GitHub Desktop.
Save marchermans/b6e5ec3306d863039a12dd77ee24eb5b to your computer and use it in GitHub Desktop.
Syntax error on running unit tests.
Test suite failed to run
/home/marc/Projects/ts-linq-core/src/queryable/List.ts:37
for await (const e of this) {
^^^^^
SyntaxError: Unexpected reserved word
> 1 | import { List } from '../../src/queryable/List';
| ^
2 | import { AsyncIteratorUtils } from '../../src/util/AsyncIteratorUtils';
3 |
4 | it('Arrays should be equal.', async () => {
at ScriptTransformer._transformAndBuildScript (node_modules/@jest/transform/build/ScriptTransformer.js:471:17)
at ScriptTransformer.transform (node_modules/@jest/transform/build/ScriptTransformer.js:513:25)
at Object.<anonymous> (tests/sourced/ArraySourcedQueryable.spec.ts:1:1)
Test Suites: 1 failed, 1 total
Tests: 0 total
Snapshots: 0 total
Time: 1.246s
Ran all test suites.
npm ERR! Test failed. See above for more details.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment