Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

npm ERR! Test failed BosqueLanguage-LearnBosqueProgramming branch #449

Closed
twostate opened this issue Apr 6, 2022 · 1 comment
Closed

Comments

@twostate
Copy link

twostate commented Apr 6, 2022

Describe the bug

Not possible to use the LearnBosqueProgramming branch on macOS Big Sur

After running npm test the following error message is reported

npm ERR! Test failed

Details:

> bosque-reference-implementation@0.5.0-rc-1 test /Users/mark/Projects/repos/BosqueLanguage-LearnBosqueProgramming/impl
> tsc -p tsconfig.json && node ./build/resource_copy.js && node ./bin/test/test_runner.js

src/runtimes/vscmd/vscmd.ts(179,30): error TS2769: No overload matches this call.
  Overload 1 of 2, '(buffer: string | Buffer, cb?: Function | undefined): boolean', gave the following error.
    Argument of type 'unknown' is not assignable to parameter of type 'string | Buffer'.
  Overload 2 of 2, '(str: string, encoding?: string | undefined, cb?: Function | undefined): boolean', gave the following error.
    Argument of type 'unknown' is not assignable to parameter of type 'string'.
src/test/test_runner.ts(164,20): error TS2571: Object is of type 'unknown'.
src/test/test_runner.ts(164,40): error TS2571: Object is of type 'unknown'.
src/test/test_runner.ts(164,73): error TS2571: Object is of type 'unknown'.
src/test/test_runner.ts(179,20): error TS2571: Object is of type 'unknown'.
src/test/test_runner.ts(179,40): error TS2571: Object is of type 'unknown'.
src/test/test_runner.ts(179,73): error TS2571: Object is of type 'unknown'.
src/test/test_runner.ts(193,20): error TS2571: Object is of type 'unknown'.
src/test/test_runner.ts(193,40): error TS2571: Object is of type 'unknown'.
src/test/test_runner.ts(193,73): error TS2571: Object is of type 'unknown'.
src/test/test_runner.ts(216,20): error TS2571: Object is of type 'unknown'.
src/test/test_runner.ts(216,40): error TS2571: Object is of type 'unknown'.
src/test/test_runner.ts(216,73): error TS2571: Object is of type 'unknown'.

To Reproduce

Run npm test after running npm install in the impl folder of the LearnBosqueProgramming branch

Expected behavior

Test passes

Remark

Please note this prevents users from using the 'Learn Bosque Programming' book to learn the language

@mrkmarron
Copy link
Contributor

Thanks for submitting this. Looks like an update in the TS compiler surfaced a new type issue. Should be fixed in the LearnBosqueProgramming branch now.

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

No branches or pull requests

2 participants