deno icon indicating copy to clipboard operation
deno copied to clipboard

deno test - default test file pattern no longer works (regression)

Open MirKml opened this issue 1 year ago • 0 comments

Version: Deno 1.45.2

After upgrade deno from 1.44.4 to 1.45.2 deno test default pattern no longer works - as is mentioned in docs. Now - 1.45.2 it matches everything in particular directory

$  deno test --allow-read=__tests__ --allow-write=__tests__ __tests__
Check file:///E:/<fullpath>/__tests__/env-template.ts
Check file:///E:/<fullpath>/__tests__/mockServerLocalConvert_test.ts
Check file:///E:/<fullpath>/__tests__/mockServerLocalResult.js
Check file:///E:/<fullpath>/__tests__/setOptions_test.ts
error: TS2339 [ERROR]: Property 'createEnvConfig' does not exist on type 'Window & typeof globalThis'.

with old 1.44.4

$  deno test --allow-read=__tests__ --allow-write=__tests__ __tests__
running 1 test from ./__tests__/mockServerLocalConvert_test.ts
mock server local convert test ... ok (7ms)
running 1 test from ./__tests__/setOptions_test.ts
setOptionsByMockServer test ... ok (0ms)

ok | 2 passed | 0 failed (41ms)

There is also change in presented path - original was relative, now is full path. I'm in favor of relative - as presented in cli parametr and it's more readable

MirKml avatar Jul 15 '24 21:07 MirKml