SubQuery is an Open, Flexible, Fast and Universal data indexing framework for web3. Our mission is to help developers create the decentralised products of the future.
Failed tests: 11/563. Failed suites: 4/100.
```
β Codegen can generate schema βΊ Should dedupe enums
ENOENT: no such file or directory, open '/home/runner/work/subql/subql/packages/cli/test/schemaTest/src/types/models/foo.ts'
```
---
```
β IPFSClient Lite βΊ should upload files and yield results
Failed to upload files to IPFS
116 | return jsonLines.map((line) => JSON.parse(line)).map(mapResponse);
117 | } catch (error) {
> 118 | throw new Error(`Failed to upload files to IPFS`, {cause: error});
| ^
119 | }
120 | }
121 |
at IPFSHTTPClientLite.addAll (packages/common/src/project/IpfsHttpClientLite/IPFSHTTPClientLite.ts:118:13)
at Object. (packages/common/src/project/IpfsHttpClientLite/IpfsHttpClientLite.spec.ts:25:21)
Cause:
AxiosError: Request failed with status code 403
at settle (node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd (node_modules/axios/lib/adapters/http.js:382:11)
β IPFSClient Lite βΊ should add a file to IPFS and return AddResult
Failed to upload files to IPFS
116 | return jsonLines.map((line) => JSON.parse(line)).map(mapResponse);
117 | } catch (error) {
> 118 | throw new Error(`Failed to upload files to IPFS`, {cause: error});
| ^
119 | }
120 | }
121 |
at IPFSHTTPClientLite.addAll (packages/common/src/project/IpfsHttpClientLite/IPFSHTTPClientLite.ts:118:13)
at IPFSHTTPClientLite.add (packages/common/src/project/IpfsHttpClientLite/IPFSHTTPClientLite.ts:52:21)
at Object. (packages/common/src/project/IpfsHttpClientLite/IpfsHttpClientLite.spec.ts:55:23)
Cause:
AxiosError: Request failed with status code 403
at settle (node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd (node_modules/axios/lib/adapters/http.js:382:11)
β IPFSClient Lite βΊ should pin a content with given CID to a remote pinning service
Failed to pin CID QmQKeYj2UZJoTN5yXSvzJy4A3CjUuSmEWAKeZV4herh5bS to remote service
74 | return response.data;
75 | } catch (e) {
> 76 | throw new Error(`Failed to pin CID ${cid} to remote service`, {cause: e});
| ^
77 | }
78 | }
79 |
at IPFSHTTPClientLite.pinRemoteAdd (packages/common/src/project/IpfsHttpClientLite/IPFSHTTPClientLite.ts:76:13)
at Object. (packages/common/src/project/IpfsHttpClientLite/IpfsHttpClientLite.spec.ts:64:20)
Cause:
AxiosError: Request failed with status code 403
at settle (node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd (node_modules/axios/lib/adapters/http.js:382:11)
```
---
```
β Cli publish βΊ should upload appropriate project to IPFS
Module not found: Error: Can't resolve './datasources' in '/tmp/YTlk7B/mocked_starter/src/types'
[tsl] ERROR in /tmp/YTlk7B/mocked_starter/src/types/index.ts(7,15)
TS2307: Cannot find module './datasources' or its corresponding type declarations.
70 | );
71 | }
> 72 |
| ^
73 | for (const i in buildEntries) {
74 | if (typeof buildEntries[i] !== 'string') {
75 | this.warn(`Ignoring entry ${i} from build.`);
at Object.error (node_modules/@oclif/core/lib/errors/index.js:27:15)
at Build.error (node_modules/@oclif/core/lib/command.js:139:23)
at Build.run (packages/cli/src/commands/build/index.ts:72:18)
at async Build._run (node_modules/@oclif/core/lib/command.js:117:22)
at async createTestProject (packages/cli/src/createProject.fixtures.ts:75:5)
at async Promise.all (index 0)
at async Object. (packages/cli/src/controller/publish-controller.spec.ts:22:21)
β Cli publish βΊ convert to deployment and removed descriptive field
Module not found: Error: Can't resolve './datasources' in '/tmp/YTlk7B/mocked_starter/src/types'
[tsl] ERROR in /tmp/YTlk7B/mocked_starter/src/types/index.ts(7,15)
TS2307: Cannot find module './datasources' or its corresponding type declarations.
70 | );
71 | }
> 72 |
| ^
73 | for (const i in buildEntries) {
74 | if (typeof buildEntries[i] !== 'string') {
75 | this.warn(`Ignoring entry ${i} from build.`);
at Object.error (node_modules/@oclif/core/lib/errors/index.js:27:15)
at Build.error (node_modules/@oclif/core/lib/command.js:139:23)
at Build.run (packages/cli/src/commands/build/index.ts:72:18)
at async Build._run (node_modules/@oclif/core/lib/command.js:117:22)
at async createTestProject (packages/cli/src/createProject.fixtures.ts:75:5)
at async Promise.all (index 0)
at async Object. (packages/cli/src/controller/publish-controller.spec.ts:22:21)
β Cli publish βΊ convert js object to JSON object
Module not found: Error: Can't resolve './datasources' in '/tmp/YTlk7B/mocked_starter/src/types'
[tsl] ERROR in /tmp/YTlk7B/mocked_starter/src/types/index.ts(7,15)
TS2307: Cannot find module './datasources' or its corresponding type declarations.
70 | );
71 | }
> 72 |
| ^
73 | for (const i in buildEntries) {
74 | if (typeof buildEntries[i] !== 'string') {
75 | this.warn(`Ignoring entry ${i} from build.`);
at Object.error (node_modules/@oclif/core/lib/errors/index.js:27:15)
at Build.error (node_modules/@oclif/core/lib/command.js:139:23)
at Build.run (packages/cli/src/commands/build/index.ts:72:18)
at async Build._run (node_modules/@oclif/core/lib/command.js:117:22)
at async createTestProject (packages/cli/src/createProject.fixtures.ts:75:5)
at async Promise.all (index 0)
at async Object. (packages/cli/src/controller/publish-controller.spec.ts:22:21)
β Cli publish βΊ Get directory CID from multi-chain project
Module not found: Error: Can't resolve './datasources' in '/tmp/YTlk7B/mocked_starter/src/types'
[tsl] ERROR in /tmp/YTlk7B/mocked_starter/src/types/index.ts(7,15)
TS2307: Cannot find module './datasources' or its corresponding type declarations.
70 | );
71 | }
> 72 |
| ^
73 | for (const i in buildEntries) {
74 | if (typeof buildEntries[i] !== 'string') {
75 | this.warn(`Ignoring entry ${i} from build.`);
at Object.error (node_modules/@oclif/core/lib/errors/index.js:27:15)
at Build.error (node_modules/@oclif/core/lib/command.js:139:23)
at Build.run (packages/cli/src/commands/build/index.ts:72:18)
at async Build._run (node_modules/@oclif/core/lib/command.js:117:22)
at async createTestProject (packages/cli/src/createProject.fixtures.ts:75:5)
at async Promise.all (index 0)
at async Object. (packages/cli/src/controller/publish-controller.spec.ts:22:21)
```
---
```
β Intergration test - Publish βΊ overwrites any exisiting CID files
thrown: "Exceeded timeout of 300000 ms for a test.
Add a timeout value to this test to increase the timeout, if this is a long-running test. See https://jestjs.io/docs/api#testname-fn-timeout."
28 | it('overwrites any exisiting CID files', async () => {
29 | const initCID = 'QmWLxg7xV7ZWUyc7ZxZ8XuQQ7NmH8WQGXzg7VZ3QQNqF-testing';
> 30 | const cidFilePath = path.resolve(projectDir, '.project-cid');
| ^
31 | await fs.promises.writeFile(cidFilePath, initCID);
32 | await Publish.run(['-f', projectDir, '-o']);
33 | const cidValue = await fs.promises.readFile(cidFilePath, 'utf8');
at packages/cli/src/commands/publish.test.ts:30:5
at Object. (packages/cli/src/commands/publish.test.ts:15:1)
β Intergration test - Publish βΊ create ipfsCID file stored in local with dictiory path
thrown: "Exceeded timeout of 300000 ms for a test.
Add a timeout value to this test to increase the timeout, if this is a long-running test. See https://jestjs.io/docs/api#testname-fn-timeout."
36 |
37 | it('create ipfsCID file stored in local with dictiory path', async () => {
> 38 | await Publish.run(['-f', projectDir]);
| ^
39 | const cidFile = path.resolve(projectDir, '.project-cid');
40 | const fileExists = fs.existsSync(cidFile);
41 | const IPFScontent = await fs.promises.readFile(cidFile, 'utf8');
at packages/cli/src/commands/publish.test.ts:38:5
at Object. (packages/cli/src/commands/publish.test.ts:15:1)
β Intergration test - Publish βΊ file name consistent with manfiest file name, if -f is used
thrown: "Exceeded timeout of 300000 ms for a test.
Add a timeout value to this test to increase the timeout, if this is a long-running test. See https://jestjs.io/docs/api#testname-fn-timeout."
45 |
46 | // Run this last because it modifies the project
> 47 | it('file name consistent with manfiest file name, if -f is used', async () => {
| ^
48 | const manifestPath = path.resolve(projectDir, 'project.yaml');
49 | const testManifestPath = path.resolve(projectDir, 'test.yaml');
50 | fs.renameSync(manifestPath, testManifestPath);
at packages/cli/src/commands/publish.test.ts:47:5
at Object. (packages/cli/src/commands/publish.test.ts:15:1)
```
Coverage report for
.
Show new covered files π£
|
Show files with reduced coverage π»
|
Test suite run failed
Failed tests: 11/563. Failed suites: 4/100.
``` β Codegen can generate schema βΊ Should dedupe enums ENOENT: no such file or directory, open '/home/runner/work/subql/subql/packages/cli/test/schemaTest/src/types/models/foo.ts' ``` --- ``` β IPFSClient Lite βΊ should upload files and yield results Failed to upload files to IPFS 116 | return jsonLines.map((line) => JSON.parse(line)).map(mapResponse); 117 | } catch (error) { > 118 | throw new Error(`Failed to upload files to IPFS`, {cause: error}); | ^ 119 | } 120 | } 121 | at IPFSHTTPClientLite.addAll (packages/common/src/project/IpfsHttpClientLite/IPFSHTTPClientLite.ts:118:13) at Object.
Report generated by π§ͺjest coverage report action from f635cbc73a6d60ea7eff8b8f0d444069572a4192