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

茶叶蛋 test 错误 #2334

Closed
waitingsong opened this issue Apr 7, 2018 · 4 comments
Closed

茶叶蛋 test 错误 #2334

waitingsong opened this issue Apr 7, 2018 · 4 comments
Assignees

Comments

@waitingsong
Copy link
Contributor

  • Node Version: 8.10.0
  • Egg Version: 2.6.0
  • Plugin Name:
  • Plugin Version:
  • Platform: win7 64bit
  • Mini Showcase Repository:
npx egg-init --type=ts showcase
cd showcase && npm i
npm run dev

以上代码没问题,执行 npm run test 出错:

$ npm run test

> [email protected] test E:\project\tt\showcase
> npm run lint -- --fix && npm run test-local


> [email protected] lint E:\project\tt\showcase
> tslint . "--fix"


> [email protected] test-local E:\project\tt\showcase
> egg-bin test -r egg-ts-helper/register

[egg-ts-helper] E:\project\tt\showcase\typings\app\controller\index.d.ts created
[egg-ts-helper] E:\project\tt\showcase\typings\config\index.d.ts created
[egg-ts-helper] E:\project\tt\showcase\typings\app\service\index.d.ts created


  test/app/controller/home.test.ts
    √ should GET /

  test/app/service/Test.test.js
    √ sayHi


  2 passing (1s)

2018-04-07 17:49:29,173 ERROR 7976 nodejs.unhandledExceptionError: kill ENOSYS
    at _errnoException (util.js:1022:11)
    at ChildProcess.kill (internal/child_process.js:392:13)
    at process.close (E:\project\tt\showcase\node_modules\egg-ts-helper\src\register.ts:20:10)
    at emitOne (events.js:121:20)
    at process.emit (events.js:211:7)
    at process.emit (E:\project\tt\showcase\node_modules\source-map-support\source-map-support.js:452:21)
    at process.emit (E:\project\tt\showcase\node_modules\espower-loader\node_modules\source-map-support\source-map-support.js:439:21)
    at process.exit (internal/process.js:157:15)
    at done (E:\project\tt\showcase\node_modules\egg-bin\node_modules\mocha\bin\_mocha:61:15)
    at afterWrite (_stream_writable.js:464:3)
    at _combinedTickCallback (internal/process/next_tick.js:144:20)
    at process._tickCallback (internal/process/next_tick.js:180:9)
code: 'ENOSYS'
errno: 'ENOSYS'
syscall: 'kill'
name: 'unhandledExceptionError'
pid: 7976


2018-04-07 17:49:29,173 ERROR 7976 nodejs.unhandledExceptionError: kill ENOSYS (uncaughtException throw 1 times on pid:7976)
    at _errnoException (util.js:1022:11)
    at ChildProcess.kill (internal/child_process.js:392:13)
    at process.close (E:\project\tt\showcase\node_modules\egg-ts-helper\src\register.ts:20:10)
    at emitOne (events.js:121:20)
    at process.emit (events.js:211:7)
    at process.emit (E:\project\tt\showcase\node_modules\source-map-support\source-map-support.js:452:21)
    at process.emit (E:\project\tt\showcase\node_modules\espower-loader\node_modules\source-map-support\source-map-support.js:439:21)
    at process.exit (internal/process.js:157:15)
    at done (E:\project\tt\showcase\node_modules\egg-bin\node_modules\mocha\bin\_mocha:61:15)
    at afterWrite (_stream_writable.js:464:3)
    at _combinedTickCallback (internal/process/next_tick.js:144:20)
    at process._tickCallback (internal/process/next_tick.js:180:9)
code: 'ENOSYS'
errno: 'ENOSYS'
syscall: 'kill'
name: 'unhandledExceptionError'
pid: 7976




@waitingsong
Copy link
Contributor Author

参照 atian25/blog#27 过程执行

@whxaxes whxaxes self-assigned this Apr 8, 2018
@whxaxes
Copy link
Member

whxaxes commented Apr 8, 2018

看来是 windows 上的错误,我看一下

@whxaxes
Copy link
Member

whxaxes commented Apr 8, 2018

升级一下 egg-ts-helper 到 1.5.2 再试试

@waitingsong
Copy link
Contributor Author

@whxaxes egg-ts-helper 到 1.5.2 问题解决了

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

No branches or pull requests

2 participants