Testing not possible on Mac and VSCode

Hello,

I haven’t been able to get the tests executed on my local machine (Mac OS and VS Code).

I followed the instruction Installing TypeScript locally | Exercism's Docs

After these steps I still cannot run any step via VS Code.

I wonder if that belongs to the following warnings I get when running the commands from installation instruction.

corepack yarn install

YN0000: · Yarn 4.3.1

➤ YN0000: ┌ Resolution step

➤ YN0085: │ + …exercism/babel-preset-typescript…npm:0.5.0, …exercism/eslint-config-typescript…npm:0.7.1, and 627 more.

➤ YN0000: └ Completed in 1s 746ms

➤ YN0000: ┌ Post-resolution validation

➤ YN0060: │ eslint is listed by your project with version 9.9.1 (pc5d24), which doesn’t satisfy what …exercism/eslint-config-typescript and other dependencies request (but they have non-overlapping ranges!).

➤ YN0002: │ …exercism/typescript-clock…workspace:. doesn’t provide …babel/core (pba8e4), requested by babel-jest.

➤ YN0086: │ Some peer dependencies are incorrectly met by your project; run yarn explain peer-requirements for details, where is the six-letter p-prefixed code.

➤ YN0086: │ Some peer dependencies are incorrectly met by dependencies; run yarn explain peer-requirements for details.

➤ YN0000: └ Completed

➤ YN0000: ┌ Fetch step

➤ YN0000: └ Completed

➤ YN0000: ┌ Link step

➤ YN0000: │ ESM support for PnP uses the experimental loader API and is therefore experimental

➤ YN0007: │ core-js…npm:3.37.1 must be built because it never has been before or the last one failed

➤ YN0007: │ core-js…npm:3.38.1 must be built because it never has been before or the last one failed

➤ YN0000: └ Completed in 1s 250ms

➤ YN0000: · Done with warnings in 3s 111ms

corepack yarn dlx …yarnpkg/sdks vscode

YN0000: · Yarn 4.3.1

➤ YN0000: ┌ Resolution step

➤ YN0085: │ + …yarnpkg/sdks…npm:3.2.0, …arcanis/slice-ansi…npm:1.1.1, …nodelib/fs.scandir…npm:2.1.5, and 101 more.

➤ YN0000: └ Completed in 1s 394ms

➤ YN0000: ┌ Fetch step

➤ YN0013: │ 104 packages were added to the project (+ 2.89 MiB).

➤ YN0000: └ Completed

➤ YN0000: ┌ Link step

➤ YN0000: └ Completed

➤ YN0000: · Done in 1s 499ms

➤ YN0000: ┌ Generating SDKs inside .yarn/sdks

➤ YN0000: │ ✓ Eslint

➤ YN0000: │ ✓ Prettier

➤ YN0000: │ ✓ Typescript

➤ YN0000: │ • 5 SDKs were skipped based on your root dependencies

➤ YN0000: └ Completed

➤ YN0000: ┌ Generating settings

➤ YN0000: │ ✓ Vscode (new :sparkles:)

➤ YN0000: └ Completed

Changed … with …, otherwise I would not have been allowed to post here.

Best

@filgit Welcome to Exercism Forum! For code and command output, please use a code block grafik

We now know what has worked, but what doesn’t work? Which commands did you run in what folder to execute the tests? And what output did that produce? What failure message(s) do you get?

Sorry for being imprecise.

I’m using the test integration from VS Code

So no CLI command was used.

I can’t see that from the screenshot, but please make sure:

  1. Running tests from commandline as described in Exercism’s JavaScript docs works
  2. Your VSCode test setup matches the way Exercism wants the tests to run
    • Maybe the directory to run the tests in must be set explicitly

Hope that helps.

Okay, actually that works, even I wonder why there are more tests shown than actually are there and I need to change xit to it command. Anyhow, thank you!

For beginners even this is already a hurdle. With the python track everything is more seemless but happy now, that I don’t have to copy paste in to only editor anymore.

and I need to change xit to it command.

This is written in the instructions and the testing guide for the track. The same is true on most tracks, like python, except for concept exercises, which TypeScript does not have yet.

I am happy to read you can now work on these exercises. If another issue is found, please open a new topic and we are happy to help you.