question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Instructions on running tests

See original GitHub issue

Subject of the issue

I’ve got an idea, for a contribution I’d like to make. My first port of call was to try and run the tests “out of the box”.

A fresh yarn install && yarn test outputs:

yarn run v1.5.1
$ remark . -qf && eslint . && lerna run test

/Users/jonsherrard/playground/mdx/packages/runtime/src/index.js
  4:22  error  Unable to resolve path to module '@mdx-js/tag'  import/no-unresolved

✖ 1 problem (1 error, 0 warnings)

error An unexpected error occurred: "Command failed.
Exit code: 1
Command: sh
Arguments: -c remark . -qf && eslint . && lerna run test
Directory: /Users/jonsherrard/playground/mdx
Output:
".

I’ve tried a few combinitions of lernna link in various packages, to no avail.

Your environment

  • Name and version of operating system MacOS 10.14 (Mojave)
  • Names and version of required packages Fresh git clone only
  • Version of node, npm, yarn, or names and versions of browser Node v10.13.0, NPM v6.4.1, Yarn 1.5.1

Steps to reproduce

Tell us how to reproduce this issue. Please provide a working and simplified example.

git clone git@github.com:mdx-js/mdx.git && cd mdx && yarn install && yarn test

🎉 BONUS POINTS for creating a minimal reproduction and uploading it to GitHub. This will get you the fastest support. 🎉

Expected behaviour

Tests should run and pass

Actual behaviour

yarn run v1.5.1
$ remark . -qf && eslint . && lerna run test

/Users/jonsherrard/playground/mdx/packages/runtime/src/index.js
  4:22  error  Unable to resolve path to module '@mdx-js/tag'  import/no-unresolved

✖ 1 problem (1 error, 0 warnings)

error An unexpected error occurred: "Command failed.
Exit code: 1
Command: sh
Arguments: -c remark . -qf && eslint . && lerna run test
Directory: /Users/jonsherrard/playground/mdx
Output:
".

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
jonsherrardcommented, Dec 11, 2018

@wooorm’s solution works. (thanks!)

1reaction
jonsherrardcommented, Dec 11, 2018

Thanks @wooorm, I’ll give that a go and that submit a PR for contributing.md and yarn run bootstrap

Read more comments on GitHub >

github_iconTop Results From Across the Web

Instructions for running unit tests
Instructions for running unit tests · Build unit test module · Install resulting apk on device · Run all tests · Run tests...
Read more >
Running tests · erlang/otp Wiki - GitHub
Just make sure to release the changes before re-running the tests. This is done by issuing make release ... Run ts:help() to show...
Read more >
Running Tests — web-platform-tests documentation
The simplest way to run the tests is via the public website. More detail on that approach is available in Running tests from...
Read more >
Run tests | IntelliJ IDEA Documentation - JetBrains
Place the caret at the test class to run all tests in that class, or at the test method, and press Ctrl+Shift+F10 ....
Read more >
20m Multistage Fitness Test (Beep Test) Instructions
Prepare forms and record basic information such as age, height, body weight, gender, test conditions (particularly the weather and running surface). Measure and ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found