Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Env support requested changes #2

Merged
merged 3 commits into from
Apr 16, 2024
Merged

Conversation

AK46rocks
Copy link
Collaborator

@AK46rocks AK46rocks commented Apr 16, 2024

Description

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.

Fixes # (issue)

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Checklist

  • I have tested locally
  • I have performed a self review of my changes
  • Updated any relevant documentation
  • Linked to any relevant issues
  • I have added tests relevant to my changes
  • Any dependent changes have been merged and published in downstream modules
  • My code is up to date with the base branch
  • I have updated relevant changelogs. We suggest using chan

@AK46rocks AK46rocks requested a review from hitesh23k April 16, 2024 14:30
@hitesh23k hitesh23k merged commit 917f5ce into main Apr 16, 2024
1 of 2 checks passed
Copy link

github-actions bot commented Apr 17, 2024

Coverage report for .

Caution

Test run failed

St.
Category Percentage Covered / Total
🟡 Statements
61.38% (-8.73% 🔻)
16476/26843
🟡 Branches
79.6% (+1.31% 🔼)
1799/2260
🔴 Functions
51.31% (-11.19% 🔻)
706/1376
🟡 Lines
61.38% (-8.73% 🔻)
16476/26843
Show new covered files 🐣
St.
File Statements Branches Functions Lines
🟢
... / createProject.fixtures.ts
90.16% 66.67% 100% 90.16%
🟢
... / dictionary.fixtures.ts
100% 100% 100% 100%
🔴
... / sandbox.service.ts
36.36% 0% 0% 36.36%
🔴
... / foreceClean.init.ts
42.86% 100% 0% 42.86%
🔴
... / reindex.init.ts
31.03% 100% 0% 31.03%
🔴
... / datasourceProcessors.ts
0% 0% 0% 0%
Show files with reduced coverage 🔻
St.
File Statements Branches Functions Lines
🔴
... / index.ts
26.14% (-56.82% 🔻)
100% (+33.33% 🔼)
0% (-50% 🔻)
26.14% (-56.82% 🔻)
🟡
... / index.ts
64.52% (-27.42% 🔻)
33.33% (+8.33% 🔼)
100%
64.52% (-27.42% 🔻)
🔴
... / deploy.ts
18.97% (-2.17% 🔻)
100% 0%
18.97% (-2.17% 🔻)
🔴
... / publish.ts
28% (-61.33% 🔻)
100% (+42.86% 🔼)
0% (-100% 🔻)
28% (-61.33% 🔻)
🔴
... / build-controller.ts
11.96% (-79.35% 🔻)
100% (+42.86% 🔼)
0% (-100% 🔻)
11.96% (-79.35% 🔻)
🟢
... / codegen-controller.ts
89.39%
75% (-0.58% 🔻)
100% 89.39%
🟢
... / generate-controller.ts
97.65%
93.85% (-0.18% 🔻)
100% 97.65%
🟡
... / init-controller.ts
76.21% (+5.73% 🔼)
63.64% (-4.36% 🔻)
61.11% (+7.78% 🔼)
76.21% (+5.73% 🔼)
🔴
... / publish-controller.ts
14.81% (-65.43% 🔻)
100% (+28.89% 🔼)
0% (-100% 🔻)
14.81% (-65.43% 🔻)
🟢
... / build.ts
82.76% (-2.07% 🔻)
80% (+3.08% 🔼)
100%
82.76% (-2.07% 🔻)
🟡
... / utils.ts
79.44% (-1.64% 🔻)
91.53% (+10.82% 🔼)
77.78% (+0.51% 🔼)
79.44% (-1.64% 🔻)
🟡
... / load.ts
79.41% (-8.82% 🔻)
66.67% (-19.05% 🔻)
100%
79.41% (-8.82% 🔻)
🟢
... / ProjectManifestVersioned.ts
82.19% (-2.74% 🔻)
87.5% (-12.5% 🔻)
58.33%
82.19% (-2.74% 🔻)
🔴
... / databaseUtil.ts
44.44% (-44.44% 🔻)
100% (+50% 🔼)
0% (-100% 🔻)
44.44% (-44.44% 🔻)
🔴
... / load.ts
56.12% (-3.06% 🔻)
64.71% (+9.15% 🔼)
50% (-16.67% 🔻)
56.12% (-3.06% 🔻)
🔴
... / utils.ts
50% (-12.7% 🔻)
87.5% (+14.33% 🔼)
48% (-8% 🔻)
50% (-12.7% 🔻)
🟡
... / NodeConfig.ts
76.9% (-11.71% 🔻)
82.35% (+2.72% 🔼)
48.84% (-37.21% 🔻)
76.9% (-11.71% 🔻)
🟢
... / ProjectUpgrade.service.ts
86.17% (-0.91% 🔻)
86.96% (-4.4% 🔻)
86.96% (-4.35% 🔻)
86.17% (-0.91% 🔻)
🔴
... / configure.module.ts
25.71% (-58.86% 🔻)
100% (+36% 🔼)
20% (-80% 🔻)
25.71% (-58.86% 🔻)
🟡
... / db.module.ts
78.91% (-9.38% 🔻)
57.14% (-26.19% 🔻)
66.67% (-13.33% 🔻)
78.91% (-9.38% 🔻)
🔴
... / SchemaMigration.service.ts
34.72% (-52.85% 🔻)
75% (-6.25% 🔻)
60% (-40% 🔻)
34.72% (-52.85% 🔻)
🟡
... / migration-helpers.ts
62.73% (-13.28% 🔻)
83.02% (+2.42% 🔼)
72.73% (-18.18% 🔻)
62.73% (-13.28% 🔻)
🔴
... / migration.ts
19.61% (-62.68% 🔻)
100% (+20.27% 🔼)
0% (-90.48% 🔻)
19.61% (-62.68% 🔻)
🟡
... / sequelizeUtil.ts
70.54% (-20.54% 🔻)
75% (+4.63% 🔼)
37.5% (-25% 🔻)
70.54% (-20.54% 🔻)
🔴
... / sync-helper.ts
50.46% (-37.92% 🔻)
81.82% (-6.23% 🔻)
18.33% (-56.67% 🔻)
50.46% (-37.92% 🔻)
🔴
... / benchmark.service.ts
41.26% (-13.99% 🔻)
100% (+33.33% 🔼)
0% (-40% 🔻)
41.26% (-13.99% 🔻)
🔴
... / base-block-dispatcher.ts
46.62% (-0.73% 🔻)
100%
5% (-5% 🔻)
46.62% (-0.73% 🔻)
🔴
... / block-dispatcher.ts
25% (-15.99% 🔻)
100% (+33.33% 🔼)
0% (-28.57% 🔻)
25% (-15.99% 🔻)
🔴
... / worker-block-dispatcher.ts
48.92% (-1.29% 🔻)
100% 27.27%
48.92% (-1.29% 🔻)
🟢
... / coreDictionary.ts
94.67% (-5.33% 🔻)
87.5% (-6.94% 🔻)
87.5% (-12.5% 🔻)
94.67% (-5.33% 🔻)
🟢
... / dictionaryV1.ts
89.8% (-3.43% 🔻)
75% (-3.26% 🔻)
100%
89.8% (-3.43% 🔻)
🟢
... / dictionaryV2.ts
81.58% (-0.1% 🔻)
68% (+2.78% 🔼)
100%
81.58% (-0.1% 🔻)
🔴
... / ds-processor.service.ts
47.96% (-14.13% 🔻)
75%
63.64% (-23.86% 🔻)
47.96% (-14.13% 🔻)
🟢
... / dynamic-ds.service.ts
90.55% (+0.36% 🔼)
65% (-1.67% 🔻)
88.89% (+3.17% 🔼)
90.55% (+0.36% 🔼)
🔴
... / indexer.manager.ts
29.2% (-4.01% 🔻)
100%
0% (-12.5% 🔻)
29.2% (-4.01% 🔻)
🔴
... / poi.service.ts
22.97% (-0.96% 🔻)
100%
0% (-28.57% 🔻)
22.97% (-0.96% 🔻)
🔴
... / project.service.ts
40.21% (-39.79% 🔻)
87.5% (+17.32% 🔼)
16% (-68% 🔻)
40.21% (-39.79% 🔻)
🔴
... / store.service.ts
26.39% (-39.65% 🔻)
100% (+31.58% 🔼)
3.57% (-53.57% 🔻)
26.39% (-39.65% 🔻)
🔴
... / store.ts
30.59% (-1.62% 🔻)
100% 0%
30.59% (-1.62% 🔻)
🟢
... / baseCache.service.ts
85% (-8.33% 🔻)
71.43% (-16.07% 🔻)
60% (-20% 🔻)
85% (-8.33% 🔻)
🟡
... / cacheMetadata.ts
77.02% (-11.49% 🔻)
70.27% (-5.29% 🔻)
73.33% (-20% 🔻)
77.02% (-11.49% 🔻)
🟢
... / cacheModel.ts
88.2% (+3.12% 🔼)
84% (+5.69% 🔼)
75% (-1.19% 🔻)
88.2% (+3.12% 🔼)
🟡
... / storeCache.service.ts
72.2% (-3.05% 🔻)
57.14% (-11.61% 🔻)
68.75% (-12.5% 🔻)
72.2% (-3.05% 🔻)
🟢
... / worker.store.service.ts
80% (-2.61% 🔻)
100% 50%
80% (-2.61% 🔻)
🟡
... / worker.unfinalizedBlocks.service.ts
64.44% (-35.56% 🔻)
100%
0% (-100% 🔻)
64.44% (-35.56% 🔻)
🔴
... / event.listener.ts
53.54% (-27.27% 🔻)
100%
0% (-25% 🔻)
53.54% (-27.27% 🔻)
🔴
... / health.controller.ts
55.17% 100%
0% (-50% 🔻)
55.17%
🔴
... / health.service.ts
53.42% (-4.11% 🔻)
100%
0% (-20% 🔻)
53.42% (-4.11% 🔻)
🟡
... / meta.service.ts
62.86% (-6.67% 🔻)
100% (+20% 🔼)
0% (-40% 🔻)
62.86% (-6.67% 🔻)
🔴
... / ready.controller.ts
56.52% 100%
0% (-50% 🔻)
56.52%
🟡
... / ready.service.ts
75% (-16.67% 🔻)
100%
0% (-66.67% 🔻)
75% (-16.67% 🔻)
🟢
... / autoQueue.ts
87.64% (-0.75% 🔻)
84.78% (-0.32% 🔻)
75% (-4.17% 🔻)
87.64% (-0.75% 🔻)
🟡
... / configure.ts
70.91% (-14.55% 🔻)
83.33% (+16.67% 🔼)
50% (-50% 🔻)
70.91% (-14.55% 🔻)
🔴
... / graphql.ts
21.55% (-47.41% 🔻)
100% (+29.41% 🔼)
0% (-33.33% 🔻)
21.55% (-47.41% 🔻)
🔴
... / project.ts
56.49% (-16.88% 🔻)
74.47% (-0.11% 🔻)
58.82% (-18.95% 🔻)
56.49% (-16.88% 🔻)
🟢
... / promise.ts
94.92% (+3.15% 🔼)
100% (+13.64% 🔼)
83.33% (-2.38% 🔻)
94.92% (+3.15% 🔼)
🔴
... / reindex.ts
33.33% (-0.71% 🔻)
100% 0%
33.33% (-0.71% 🔻)
🔴
... / yargs.ts
10.29% (-35.19% 🔻)
100%
0% (-14.29% 🔻)
10.29% (-35.19% 🔻)
🟢
... / SubqueryProject.ts
91.04% (-4.48% 🔻)
73.33% (-9.02% 🔻)
71.43% (-14.29% 🔻)
91.04% (-4.48% 🔻)
🔴
... / configure.module.ts
0% (-28.07% 🔻)
0% (-100% 🔻)
0%
0% (-28.07% 🔻)
🟡
... / apiPromise.connection.ts
67.36% (-1.72% 🔻)
75% (-5% 🔻)
42.86%
67.36% (-1.72% 🔻)
🔴
... / block-dispatcher.service.ts
0% (-68.87% 🔻)
0% (-100% 🔻)
0% (-25% 🔻)
0% (-68.87% 🔻)
🔴
... / index.ts
0% (-100% 🔻)
0% (-100% 🔻)
0% (-50% 🔻)
0% (-100% 🔻)
🔴
... / worker-block-dispatcher.service.ts
0% (-36.96% 🔻)
0% (-100% 🔻)
0%
0% (-36.96% 🔻)
🟢
... / substrateDictionary.service.ts
98.02% (+7.45% 🔼)
69.23% (-3.5% 🔻)
100% (+20% 🔼)
98.02% (+7.45% 🔼)
🟢
... / substrateDictionaryV1.ts
85.05% (-0.43% 🔻)
70.45% (+0.69% 🔼)
83.33%
85.05% (-0.43% 🔻)
🟡
... / substrateDictionaryV2.ts
73.03% (-2.48% 🔻)
75% 33.33%
73.03% (-2.48% 🔻)
🔴
... / dynamic-ds.service.ts
46.15% (+0.39% 🔼)
100%
0% (-50% 🔻)
46.15% (+0.39% 🔼)
🔴
... / fetch.module.ts
0% (-91.88% 🔻)
0% (-75% 🔻)
0% (-100% 🔻)
0% (-91.88% 🔻)
🔴
... / indexer.manager.ts
48% (-9.55% 🔻)
100%
0% (-9.09% 🔻)
48% (-9.55% 🔻)
🔴
... / project.service.ts
53.75% (-42.5% 🔻)
0% (-42.86% 🔻)
0% (-75% 🔻)
53.75% (-42.5% 🔻)
🟢
... / runtimeService.ts
94.29% (+2.08% 🔼)
80% (-8.89% 🔻)
100% (+20% 🔼)
94.29% (+2.08% 🔼)
🟡
... / unfinalizedBlocks.service.ts
62.75% (-23.53% 🔻)
100%
0% (-50% 🔻)
62.75% (-23.53% 🔻)
🔴
... / meta.controller.ts
0% (-86.67% 🔻)
0% (-100% 🔻)
0% (-50% 🔻)
0% (-86.67% 🔻)
🔴
... / meta.module.ts
0% (-100% 🔻)
0% (-100% 🔻)
0% (-100% 🔻)
0% (-100% 🔻)
🔴
... / meta.service.ts
0% (-92% 🔻)
0% (-100% 🔻)
0% (-50% 🔻)
0% (-92% 🔻)
🟢
... / project.ts
84.62% (-4.27% 🔻)
66.67% (-1.52% 🔻)
75% (-12.5% 🔻)
84.62% (-4.27% 🔻)
🔴
... / test.utils.ts
0% (-100% 🔻)
0% (-100% 🔻)
0% (-100% 🔻)
0% (-100% 🔻)
🔴 node/src/yargs.ts
0% (-52% 🔻)
0% (-100% 🔻)
0%
0% (-52% 🔻)
🟢
... / buffer.ts
95.12% (-4.88% 🔻)
95.45% (-4.55% 🔻)
80.95% (-3.26% 🔻)
95.12% (-4.88% 🔻)
🟡
... / logger.ts
66.22% (-3.38% 🔻)
52.63% (-2.37% 🔻)
75%
66.22% (-3.38% 🔻)
🔴
... / metadata.ts
57.89% (-21.05% 🔻)
100%
0% (-50% 🔻)
57.89% (-21.05% 🔻)

Test suite run failed

Failed tests: 14/458. Failed suites: 10/88.
  ● CLI codegen:generate › extract from TS manifest

    expect(received).toMatch(expected)

    Expected substring: "approve(address spender, uint256 rawAmount)"
    Received string:    "0x095ea7b3"

      684 |     );
      685 |     // TODO expected to fail, due to unable to skip comments
    > 686 |     expect(v.function).toMatch('approve(address spender, uint256 rawAmount)');
          |                        ^
      687 |     expect(v.topics[0]).toMatch('Transfer(address indexed from, address indexed to, uint256 amount)');
      688 |     expect(v.endpoint[0]).toMatch('https://eth.api.onfinality.io/public');
      689 |   });

      at Object.<anonymous> (packages/cli/src/controller/generate-controller.spec.ts:686:24)


  ● Test suite failed to run

    Jest worker encountered 4 child process exceptions, exceeding retry limit

      at ChildProcessWorker.initialize (node_modules/jest-worker/build/workers/ChildProcessWorker.js:181:21)


  ● Test suite failed to run

    Your test suite must contain at least one test.

      at onResult (node_modules/@jest/core/build/TestScheduler.js:133:18)
      at node_modules/@jest/core/build/TestScheduler.js:254:19
      at node_modules/emittery/index.js:363:13
          at Array.map (<anonymous>)
      at Emittery.emit (node_modules/emittery/index.js:361:23)


  ● Cli can create project (mocked) › Ensure prepareManifest and preparePackage correctness for project.ts

    expect(received).toStrictEqual(expected) // deep equality

    Expected: ["https://zzz", "https://bbb"]
    Received: null

      190 |       endpoint: ENDPOINT_REG,
      191 |     });
    > 192 |     expect(extractedValues.endpoint).toStrictEqual(project.endpoint);
          |                                      ^
      193 |     expect(originalManifest).not.toBe(updatedManifest.toString());
      194 |     expect(originalPackage).not.toBe(packageData.toString());
      195 |   });

      at Object.<anonymous> (packages/cli/src/controller/init-controller.spec.ts:192:38)


  ● Test suite failed to run

    Jest worker encountered 4 child process exceptions, exceeding retry limit

      at ChildProcessWorker.initialize (node_modules/jest-worker/build/workers/ChildProcessWorker.js:181:21)


  ● CLI deploy, delete, promote › Deploy to Hosted Service and Delete

    Failed to validate IPFS CID: An invalid response was received from the upstream server

      88 | export function errorHandle(e: any, msg: string): Error {
      89 |   if (axios.isAxiosError(e) && e?.response?.data) {
    > 90 |     throw new Error(`${msg} ${e.response.data.message ?? e.response.data}`);
         |           ^
      91 |   }
      92 |
      93 |   throw new Error(`${msg} ${e.message}`);

      at errorHandle (packages/cli/src/utils/utils.ts:90:11)
      at ipfsCID_validate (packages/cli/src/controller/deploy-controller.ts:169:16)
      at Object.<anonymous> (packages/cli/src/controller/deploy-controller.spec.ts:110:23)

  ● CLI deploy, delete, promote › should return true for valid ipfsCID

    Failed to validate IPFS CID: An invalid response was received from the upstream server

      88 | export function errorHandle(e: any, msg: string): Error {
      89 |   if (axios.isAxiosError(e) && e?.response?.data) {
    > 90 |     throw new Error(`${msg} ${e.response.data.message ?? e.response.data}`);
         |           ^
      91 |   }
      92 |
      93 |   throw new Error(`${msg} ${e.message}`);

      at errorHandle (packages/cli/src/utils/utils.ts:90:11)
      at ipfsCID_validate (packages/cli/src/controller/deploy-controller.ts:169:16)
      at Object.<anonymous> (packages/cli/src/controller/deploy-controller.spec.ts:139:23)

  ● CLI deploy, delete, promote › to throw error for invalid ipfsCID

    expect(received).rejects.toThrow(expected)

    Expected substring: "Failed to validate IPFS CID: fake is not a valid subquery deployment id!"
    Received message:   "Failed to validate IPFS CID: An invalid response was received from the upstream server"

          88 | export function errorHandle(e: any, msg: string): Error {
          89 |   if (axios.isAxiosError(e) && e?.response?.data) {
        > 90 |     throw new Error(`${msg} ${e.response.data.message ?? e.response.data}`);
             |           ^
          91 |   }
          92 |
          93 |   throw new Error(`${msg} ${e.message}`);

      at errorHandle (packages/cli/src/utils/utils.ts:90:11)
      at ipfsCID_validate (packages/cli/src/controller/deploy-controller.ts:169:16)
      at Object.<anonymous> (packages/cli/src/controller/deploy-controller.spec.ts:144:5)
      at Object.toThrow (node_modules/expect/build/index.js:210:22)
      at Object.<anonymous> (packages/cli/src/controller/deploy-controller.spec.ts:144:80)

  ● CLI deploy, delete, promote › get DictEndpoint - polkadot

    Failed to validate IPFS CID: An invalid response was received from the upstream server

      88 | export function errorHandle(e: any, msg: string): Error {
      89 |   if (axios.isAxiosError(e) && e?.response?.data) {
    > 90 |     throw new Error(`${msg} ${e.response.data.message ?? e.response.data}`);
         |           ^
      91 |   }
      92 |
      93 |   throw new Error(`${msg} ${e.message}`);

      at errorHandle (packages/cli/src/utils/utils.ts:90:11)
      at ipfsCID_validate (packages/cli/src/controller/deploy-controller.ts:169:16)
      at Object.<anonymous> (packages/cli/src/controller/deploy-controller.spec.ts:150:23)

  ● CLI deploy, delete, promote › reDeploy to Hosted Service

    Failed to validate IPFS CID: An invalid response was received from the upstream server

      88 | export function errorHandle(e: any, msg: string): Error {
      89 |   if (axios.isAxiosError(e) && e?.response?.data) {
    > 90 |     throw new Error(`${msg} ${e.response.data.message ?? e.response.data}`);
         |           ^
      91 |   }
      92 |
      93 |   throw new Error(`${msg} ${e.message}`);

      at errorHandle (packages/cli/src/utils/utils.ts:90:11)
      at ipfsCID_validate (packages/cli/src/controller/deploy-controller.ts:169:16)
      at Object.<anonymous> (packages/cli/src/controller/deploy-controller.spec.ts:160:23)


  ● Cli can create project › prepare correctly applies project details

    expect(received).toEqual(expected) // deep equality

    Expected: null
    Received: ["wss://rpc.polkadot.io/public-ws"]

      128 |     //spec version is  not returned from readDefaults
      129 |     //expect(projectSpec.specVersion).toEqual(specVersion);
    > 130 |     expect(projectSpec.endpoint).toEqual(endpoint);
          |                                  ^
      131 |     expect(projectSpec.author).toEqual(author);
      132 |     expect(projectSpec.description).toEqual(description);
      133 |     await promisify(rimraf)(tempPath);

      at Object.<anonymous> (packages/cli/src/controller/init-controller.test.ts:130:34)


  ● Test suite failed to run

    Jest worker encountered 4 child process exceptions, exceeding retry limit

      at ChildProcessWorker.initialize (node_modules/jest-worker/build/workers/ChildProcessWorker.js:181:21)


  ● Intergration test - Publish › overwrites any exisiting CID files

    Failed to generate manifest from typescript /tmp/CkFHrw/mocked_starter/project.ts, Failed to build /tmp/CkFHrw/mocked_starter/project.ts: TypeError: Cannot read properties of undefined (reading 'split')

      75 |     const script = tsNodeService.compile(
      76 |       requireScriptWrapper(formatPath(projectManifestEntry), formatPath(projectYamlPath)),
    > 77 |       'inline.ts'
         |               ^
      78 |     );
      79 |
      80 |     // Run compiled code

      at buildManifestFromLocation (packages/cli/src/utils/build.ts:77:15)
      at async Codegen.run (packages/cli/src/commands/codegen/index.ts:24:13)
      at async Codegen._run (node_modules/@oclif/core/lib/command.js:117:22)
      at async createTestProject (packages/cli/src/createProject.fixtures.ts:49:5)
      at async Object.<anonymous> (packages/cli/src/commands/publish.test.ts:18:22)

  ● Intergration test - Publish › create ipfsCID file stored in local with dictiory path

    Failed to generate manifest from typescript /tmp/CkFHrw/mocked_starter/project.ts, Failed to build /tmp/CkFHrw/mocked_starter/project.ts: TypeError: Cannot read properties of undefined (reading 'split')

      75 |     const script = tsNodeService.compile(
      76 |       requireScriptWrapper(formatPath(projectManifestEntry), formatPath(projectYamlPath)),
    > 77 |       'inline.ts'
         |               ^
      78 |     );
      79 |
      80 |     // Run compiled code

      at buildManifestFromLocation (packages/cli/src/utils/build.ts:77:15)
      at async Codegen.run (packages/cli/src/commands/codegen/index.ts:24:13)
      at async Codegen._run (node_modules/@oclif/core/lib/command.js:117:22)
      at async createTestProject (packages/cli/src/createProject.fixtures.ts:49:5)
      at async Object.<anonymous> (packages/cli/src/commands/publish.test.ts:18:22)

  ● Intergration test - Publish › file name consistent with manfiest file name, if -f <manifest path> is used

    Failed to generate manifest from typescript /tmp/CkFHrw/mocked_starter/project.ts, Failed to build /tmp/CkFHrw/mocked_starter/project.ts: TypeError: Cannot read properties of undefined (reading 'split')

      75 |     const script = tsNodeService.compile(
      76 |       requireScriptWrapper(formatPath(projectManifestEntry), formatPath(projectYamlPath)),
    > 77 |       'inline.ts'
         |               ^
      78 |     );
      79 |
      80 |     // Run compiled code

      at buildManifestFromLocation (packages/cli/src/utils/build.ts:77:15)
      at async Codegen.run (packages/cli/src/commands/codegen/index.ts:24:13)
      at async Codegen._run (node_modules/@oclif/core/lib/command.js:117:22)
      at async createTestProject (packages/cli/src/createProject.fixtures.ts:49:5)
      at async Object.<anonymous> (packages/cli/src/commands/publish.test.ts:18:22)


  ● Cli publish › should upload appropriate project to IPFS

    Failed to generate manifest from typescript /tmp/sjNRAs/mocked_starter/project.ts, Failed to build /tmp/sjNRAs/mocked_starter/project.ts: TypeError: Cannot read properties of undefined (reading 'split')

      75 |     const script = tsNodeService.compile(
      76 |       requireScriptWrapper(formatPath(projectManifestEntry), formatPath(projectYamlPath)),
    > 77 |       'inline.ts'
         |               ^
      78 |     );
      79 |
      80 |     // Run compiled code

      at buildManifestFromLocation (packages/cli/src/utils/build.ts:77:15)
      at async Codegen.run (packages/cli/src/commands/codegen/index.ts:24:13)
      at async Codegen._run (node_modules/@oclif/core/lib/command.js:117:22)
      at async createTestProject (packages/cli/src/createProject.fixtures.ts:49:5)
      at async Object.<anonymous> (packages/cli/src/controller/publish-controller.spec.ts:20:22)

  ● Cli publish › convert to deployment and removed descriptive field

    Failed to generate manifest from typescript /tmp/sjNRAs/mocked_starter/project.ts, Failed to build /tmp/sjNRAs/mocked_starter/project.ts: TypeError: Cannot read properties of undefined (reading 'split')

      75 |     const script = tsNodeService.compile(
      76 |       requireScriptWrapper(formatPath(projectManifestEntry), formatPath(projectYamlPath)),
    > 77 |       'inline.ts'
         |               ^
      78 |     );
      79 |
      80 |     // Run compiled code

      at buildManifestFromLocation (packages/cli/src/utils/build.ts:77:15)
      at async Codegen.run (packages/cli/src/commands/codegen/index.ts:24:13)
      at async Codegen._run (node_modules/@oclif/core/lib/command.js:117:22)
      at async createTestProject (packages/cli/src/createProject.fixtures.ts:49:5)
      at async Object.<anonymous> (packages/cli/src/controller/publish-controller.spec.ts:20:22)

  ● Cli publish › convert js object to JSON object

    Failed to generate manifest from typescript /tmp/sjNRAs/mocked_starter/project.ts, Failed to build /tmp/sjNRAs/mocked_starter/project.ts: TypeError: Cannot read properties of undefined (reading 'split')

      75 |     const script = tsNodeService.compile(
      76 |       requireScriptWrapper(formatPath(projectManifestEntry), formatPath(projectYamlPath)),
    > 77 |       'inline.ts'
         |               ^
      78 |     );
      79 |
      80 |     // Run compiled code

      at buildManifestFromLocation (packages/cli/src/utils/build.ts:77:15)
      at async Codegen.run (packages/cli/src/commands/codegen/index.ts:24:13)
      at async Codegen._run (node_modules/@oclif/core/lib/command.js:117:22)
      at async createTestProject (packages/cli/src/createProject.fixtures.ts:49:5)
      at async Object.<anonymous> (packages/cli/src/controller/publish-controller.spec.ts:20:22)

Report generated by 🧪jest coverage report action from 5c4c5cd

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants