Skip to content

Commit

Permalink
docs: add tip about Deno extension
Browse files Browse the repository at this point in the history
When the Deno extension is not installed, VS Code will show an error,
"An import path cannot end with a '.ts' extension," on the imports in
the generated unit test files.
  • Loading branch information
obycode committed Mar 29, 2022
1 parent e868fe7 commit 5500bfd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,10 @@ Within these tests, developers can simulate mining a block containing transactio

See the [billboard example](examples/billboard/tests/billboard_test.ts) for sample unit tests.

_Note: If you see an error in VS Code on the imports in the generated test file(s), that says, "An import path cannot end with a '.ts' extension" (example below), installing the [Deno extension](https://marketplace.visualstudio.com/items?itemName=denoland.vscode-deno) will resolve this error._

![VS Code deno error](docs/images/deno-error.png)

#### Measure and increase code coverage

To help developers maximizing their test coverage, Clarinet can produce a `lcov` report, using the following option:
Expand Down
Binary file added docs/images/deno-error.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 5500bfd

Please sign in to comment.