Spixy
Spixy
DDeno
Created by Spixy on 8/7/2023 in #help
Import map
Hi I have this in deno.json:
"imports": {
"./app.controller": "./app.controller.ts",
"imports": {
"./app.controller": "./app.controller.ts",
but deno seems to ignore it:
$ deno check src/app/app.controller.spec.ts
error: Module not found "file:///.../src/app/app.controller".
at file:///.../src/app/app.controller.spec.ts:2:31
$ deno check src/app/app.controller.spec.ts
error: Module not found "file:///.../src/app/app.controller".
at file:///.../src/app/app.controller.spec.ts:2:31
In .spec file I use import { AppController } from './app.controller'
2 replies
DDeno
Created by Spixy on 7/17/2023 in #help
deno coverage crash
I run
deno test -A --coverage=tmp/coverageData src
deno test -A --coverage=tmp/coverageData src
then
deno coverage --include=src/ tmp/coverageData/ --lcov > coverageFile.lcov
deno coverage --include=src/ tmp/coverageData/ --lcov > coverageFile.lcov
but I got:
error: EOF while parsing a value at line 1 column 0
Is there verbose flag I can activate to see more info?
1 replies
DDeno
Created by Spixy on 4/19/2023 in #help
Test case is leaking resources
Hi, all my tests keeps failing because of
error: AssertionError: Test case is leaking 2 resources:
- A timer (rid 770) was started before the test started, but was fired/cleared during the test. Do not close resources in a test that were not created during that test.
- A timer (rid 773) was started during the test, but not fired/cleared during the test. Clear the timer by calling `clearInterval` or `clearTimeout`.

at assert (deno:ext/web/00_infra.js:295:13) ...
error: AssertionError: Test case is leaking 2 resources:
- A timer (rid 770) was started before the test started, but was fired/cleared during the test. Do not close resources in a test that were not created during that test.
- A timer (rid 773) was started during the test, but not fired/cleared during the test. Clear the timer by calling `clearInterval` or `clearTimeout`.

at assert (deno:ext/web/00_infra.js:295:13) ...
4 replies