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

mocha test issue #15

Closed
1 of 3 tasks
yrq110 opened this issue Oct 22, 2019 · 1 comment · Fixed by #17
Closed
1 of 3 tasks

mocha test issue #15

yrq110 opened this issue Oct 22, 2019 · 1 comment · Fixed by #17
Assignees
Labels
bug Something isn't working

Comments

@yrq110
Copy link

yrq110 commented Oct 22, 2019

Type:

  • Bug
  • Feature
  • Help

Description:

Follow these steps:

  1. git clone git@github.com:unix/koa-ts.git
  2. yarn install
  3. yarn test

Output error message:

yarn test
$ mocha
Error: Cannot find module 'configs/utils'
    at Function.Module._resolveFilename (module.js:547:15)
    at Function.Module._load (module.js:474:25)
    at Module.require (module.js:596:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/Users/foo/Desktop/source/koa-ts/app.ts:2:1)
    at Module._compile (module.js:652:30)
    at Module.m._compile (/Users/foo/Desktop/source/koa-ts/node_modules/ts-node/src/index.ts:439:23)
    at Module._extensions..js (module.js:663:10)
    at Object.require.extensions.(anonymous function) [as .ts] (/Users/foo/Desktop/source/koa-ts/node_modules/ts-node/src/index.ts:442:12)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)
    at Module.require (module.js:596:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/Users/foo/Desktop/source/koa-ts/test/utils.nyc.ts:4:1)
    at Module._compile (module.js:652:30)
    at Module.m._compile (/Users/foo/Desktop/source/koa-ts/node_modules/ts-node/src/index.ts:439:23)
    at Module._extensions..js (module.js:663:10)
    at Object.require.extensions.(anonymous function) [as .ts] (/Users/foo/Desktop/source/koa-ts/node_modules/ts-node/src/index.ts:442:12)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)
    at Module.require (module.js:596:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/Users/foo/Desktop/source/koa-ts/test/apis/session.ts:1:1)
    at Module._compile (module.js:652:30)
    at Module.m._compile (/Users/foo/Desktop/source/koa-ts/node_modules/ts-node/src/index.ts:439:23)
    at Module._extensions..js (module.js:663:10)
    at Object.require.extensions.(anonymous function) [as .ts] (/Users/foo/Desktop/source/koa-ts/node_modules/ts-node/src/index.ts:442:12)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)
    at Module.require (module.js:596:17)
    at require (internal/module.js:11:18)
    at /Users/foo/Desktop/source/koa-ts/node_modules/mocha/lib/mocha.js:250:27
    at Array.forEach (<anonymous>)
    at Mocha.loadFiles (/Users/foo/Desktop/source/koa-ts/node_modules/mocha/lib/mocha.js:247:14)
    at Mocha.run (/Users/foo/Desktop/source/koa-ts/node_modules/mocha/lib/mocha.js:576:10)
    at Object.<anonymous> (/Users/foo/Desktop/source/koa-ts/node_modules/mocha/bin/_mocha:637:18)
    at Module._compile (module.js:652:30)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)
    at Function.Module.runMain (module.js:693:10)
    at startup (bootstrap_node.js:191:16)
    at bootstrap_node.js:612:3
error Command failed with exit code 1.
@unix unix added the bug Something isn't working label Dec 30, 2019
@unix
Copy link
Owner

unix commented Dec 30, 2019

Hi, sorry for the late reply, and your issue has been fixed here: #17 .

@unix unix self-assigned this Dec 30, 2019
@unix unix closed this as completed in #17 Dec 30, 2019
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.

2 participants