fix tests on old node version #545
Annotations
10 errors and 1 warning
src/WriteClient.ts#L1029
ReferenceError: FormData is not defined
❯ WriteClient.buildAssetAPIQueryParams src/WriteClient.ts:1029:23
❯ WriteClient.createAssetTag src/WriteClient.ts:893:9
❯ test/writeClient-createAssetTag.test.ts:23:27
|
test/writeClient-createAssetTag.test.ts#L50
AssertionError: promise rejected "ReferenceError: FormData is not defined" instead of resolving
❯ test/writeClient-createAssetTag.test.ts:50:2
Caused by: Caused by: ReferenceError: FormData is not defined
❯ WriteClient.buildAssetAPIQueryParams src/WriteClient.ts:1029:23
❯ WriteClient.createAssetTag src/WriteClient.ts:893:9
❯ test/writeClient-createAssetTag.test.ts:49:10
|
src/WriteClient.ts#L1029
ReferenceError: FormData is not defined
❯ WriteClient.buildAssetAPIQueryParams src/WriteClient.ts:1029:23
❯ WriteClient.createAssetTag src/WriteClient.ts:893:9
❯ test/writeClient-createAssetTag.test.ts:92:15
|
src/WriteClient.ts#L1029
ReferenceError: FormData is not defined
❯ WriteClient.buildAssetAPIQueryParams src/WriteClient.ts:1029:23
❯ WriteClient.getAssets src/WriteClient.ts:599:9
❯ test/writeClient-getAssets.test.ts:14:35
|
src/WriteClient.ts#L1029
ReferenceError: FormData is not defined
❯ WriteClient.buildAssetAPIQueryParams src/WriteClient.ts:1029:23
❯ WriteClient.getAssets src/WriteClient.ts:599:9
❯ test/writeClient-getAssets.test.ts:30:35
|
src/WriteClient.ts#L1029
ReferenceError: FormData is not defined
❯ WriteClient.buildAssetAPIQueryParams src/WriteClient.ts:1029:23
❯ WriteClient.getAssets src/WriteClient.ts:599:9
❯ test/writeClient-getAssets.test.ts:47:35
|
src/WriteClient.ts#L1029
ReferenceError: FormData is not defined
❯ WriteClient.buildAssetAPIQueryParams src/WriteClient.ts:1029:23
❯ WriteClient.getAssets src/WriteClient.ts:599:9
❯ test/writeClient-getAssets.test.ts:62:35
|
src/WriteClient.ts#L1029
ReferenceError: FormData is not defined
❯ WriteClient.buildAssetAPIQueryParams src/WriteClient.ts:1029:23
❯ WriteClient.getAssets src/WriteClient.ts:599:9
❯ test/writeClient-getAssets.test.ts:77:35
|
src/WriteClient.ts#L1029
ReferenceError: FormData is not defined
❯ WriteClient.buildAssetAPIQueryParams src/WriteClient.ts:1029:23
❯ WriteClient.getAssets src/WriteClient.ts:599:9
❯ test/writeClient-getAssets.test.ts:92:35
|
src/WriteClient.ts#L1029
ReferenceError: FormData is not defined
❯ WriteClient.buildAssetAPIQueryParams src/WriteClient.ts:1029:23
❯ WriteClient.getAssetTags src/WriteClient.ts:913:9
❯ src/WriteClient.ts:835:36
❯ src/lib/pLimit.ts:64:31
❯ run src/lib/pLimit.ts:64:54
|
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
This job failed
Loading