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

npm test 出错 #42

Open
Topdear opened this issue Aug 3, 2021 · 1 comment
Open

npm test 出错 #42

Topdear opened this issue Aug 3, 2021 · 1 comment

Comments

@Topdear
Copy link

Topdear commented Aug 3, 2021

10 passing (25s)
7 failing

  1. 测试的时候碰到的Bug
    冲四双三不能赢,因为对手可以冲四防双三,bug:

    AssertionError: expected false to be true

    • expected - actual

    -false
    +true

    at Context. (dist/main.bundle.js:1931:135)
    at processImmediate (internal/timers.js:464:21)

  2. 测试 gen 函数
    应该能生成冲四防守点:

    AssertionError: expected false to be true

    • expected - actual

    -false
    +true

    at Context. (dist/main.bundle.js:2031:145)
    at processImmediate (internal/timers.js:464:21)

  3. 开局测试
    测试浦月开局:
    Error: Timeout of 2000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/Library/WebServer/Documents/wzq/dist/main.bundle.js)
    at processImmediate (internal/timers.js:464:21)

  4. 测试Star路径的bug
    [6, 4] 能赢:
    Error: Timeout of 2000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/Library/WebServer/Documents/wzq/dist/main.bundle.js)
    at processImmediate (internal/timers.js:464:21)

  5. Test Time
    无意义冲四过多的时候会不会很慢:
    Error: Timeout of 2000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/Library/WebServer/Documents/wzq/dist/main.bundle.js)
    at processImmediate (internal/timers.js:464:21)

  6. Test Time
    此处有杀棋, 只有 [6, 5], [5, 4] 两种走法有杀棋:
    Error: Timeout of 2000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/Library/WebServer/Documents/wzq/dist/main.bundle.js)
    at processImmediate (internal/timers.js:464:21)

  7. 非常长的时间
    由于活三冲四太多,导致思考非常久:
    Error: Timeout of 2000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/Library/WebServer/Documents/wzq/dist/main.bundle.js)
    at processImmediate (internal/timers.js:464:21)

MOCHA Tests completed with 7 failure(s)

ERROR mocha-webpack exited with code 7.
npm ERR! Test failed. See above for more details.

@liuqi18
Copy link

liuqi18 commented Dec 9, 2021

您好,请问您解决了问题吗?我npm install 之后,npm test,npm run js。。。。全部都无法执行?在package.json文件里只找到了:
"scripts": {
"build": "tsc --build",
"clean": "tsc --build --clean",
"start": "node app"
},
这三个可执行语句。
但是运行npm run build 后显示:

npm run build
[email protected] build
tsc --build
error TS5083: Cannot read file 'D:/****/五子棋/gobang-master 2/gobang-master/gobang-master/tsconfig.json'.
Found 1 error.

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