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

bug: Tests are failing with errors. #45

Closed
Creatoon opened this issue Mar 1, 2022 · 0 comments · Fixed by #53
Closed

bug: Tests are failing with errors. #45

Creatoon opened this issue Mar 1, 2022 · 0 comments · Fixed by #53
Labels
bug Something isn't working

Comments

@Creatoon
Copy link
Collaborator

Creatoon commented Mar 1, 2022

Stack Trace

UNKNOWN_VALUE: Unknown value: dist/test/
    at Object.commandLineArgs [as default] (/home/raj/Desktop/metacall/deploy/node_modules/command-line-args/dist/index.js:1369:21)
    at parse (/home/raj/Desktop/metacall/deploy/node_modules/ts-command-line-args/dist/parse.js:60:49)
    at Object.<anonymous> (/home/raj/Desktop/metacall/deploy/dist/cli/args.js:24:52)
    at Module._compile (node:internal/modules/cjs/loader:1103:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1155:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (/home/raj/Desktop/metacall/deploy/dist/auth.js:10:32)
    at Module._compile (node:internal/modules/cjs/loader:1103:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1155:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (/home/raj/Desktop/metacall/deploy/dist/startup.js:10:16)
    at Module._compile (node:internal/modules/cjs/loader:1103:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1155:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (/home/raj/Desktop/metacall/deploy/dist/test/protocol.integration.spec.js:10:19)
    at Module._compile (node:internal/modules/cjs/loader:1103:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1155:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:168:29)
    at ModuleJob.run (node:internal/modules/esm/module_job:195:25)
    at async Promise.all (index 0)
    at async ESMLoader.import (node:internal/modules/esm/loader:337:24)
    at async importModuleDynamicallyWrapper (node:internal/vm/module:437:15)
    at async formattedImport (/home/raj/Desktop/metacall/deploy/node_modules/mocha/lib/nodejs/esm-utils.js:7:14)
    at async Object.exports.requireOrImport (/home/raj/Desktop/metacall/deploy/node_modules/mocha/lib/nodejs/esm-utils.js:48:32)
    at async Object.exports.loadFilesAsync (/home/raj/Desktop/metacall/deploy/node_modules/mocha/lib/nodejs/esm-utils.js:103:20)
    at async singleRun (/home/raj/Desktop/metacall/deploy/node_modules/mocha/lib/cli/run-helpers.js:125:3)
    at async Object.exports.handler (/home/raj/Desktop/metacall/deploy/node_modules/mocha/lib/cli/run.js:374:5)

Solution Proposed

  1. Move protocol.integration.spec.test to metacall/protocol

Additional Context

  1. This is not related to any file in the dist/test, simply means moving the file mentioned above will not solve the issue.
  2. Remove cli.integration.spec.test and Remove before() from protocol.integration.spec.test and mark every test case to turn true, then test will not fail.
  3. It is parsing the arguments in the wrong process and it looks like this
      [
           '/home/pc/.nvm/versions/node/v16.14.0/bin/node',
            '/home/pc/Desktop/metacall/deploy/node_modules/.bin/mocha',
            'dist/test/'
     ]
@Creatoon Creatoon added the bug Something isn't working label Mar 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant