-
Notifications
You must be signed in to change notification settings - Fork 467
Closed
Labels
Description
Version
29.3.2
Steps to reproduce
git clone https://github.com/drizt/error-isolatedDeclarations-ts-jest.git
cd error-isolatedDeclarations-ts-jest
npm i
npm test
Expected behavior
$ npm test
> [email protected] test
> NODE_OPTIONS='--no-warnings --experimental-vm-modules' jest
PASS ./main.test.ts
✓ adds 1 + 2 to equal 3 (5 ms)
Test Suites: 1 passed, 1 total
Tests: 1 passed, 1 total
Snapshots: 0 total
Time: 0.461 s
Ran all test suites.
Actual behavior
$ npm test
> [email protected] test
> NODE_OPTIONS='--no-warnings --experimental-vm-modules' jest
FAIL ./main.test.ts
● Test suite failed to run
error TS5069: Option 'isolatedDeclarations' cannot be specified without specifying option 'declaration' or option 'composite'.
Test Suites: 1 failed, 1 total
Tests: 0 total
Snapshots: 0 total
Time: 0.422 s, estimated 1 s
Ran all test suites.
Debug log
Additional context
Error happens when I set isolatedDeclarations
to true
in tsconfig.json. Atm declaration
is also set to true
. But errors message say me that I must set declaration
.
Environment
System:
OS: Linux 6.13 Fedora Linux 41 (KDE Plasma)
CPU: (4) x64 Intel(R) Core(TM) i5-3317U CPU @ 1.70GHz
Binaries:
Node: 24.0.1 - ~/.nvm/versions/node/v24.0.1/bin/node
npm: 11.3.0 - ~/.nvm/versions/node/v24.0.1/bin/npm
npmPackages:
jest: ^29.7.0 => 29.7.0