Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fixup! process: fix process.features.typescript when Amaro is unava…
…ilable
  • Loading branch information
aduh95 committed Oct 9, 2024
commit 60dce1fee136de9b31c707aad67a1861c4f04663
4 changes: 2 additions & 2 deletions test/es-module/test-typescript.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ test('expect process.features.typescript to be \'strip\' when --experimental-str
const result = await spawnPromisified(process.execPath, [
'--no-warnings',
'--experimental-strip-types',
'-p', 'process.features.typescript',
fixtures.path('typescript/echo-process-features-typescript.cjs'),
]);

strictEqual(result.stderr, '');
Expand All @@ -19,7 +19,7 @@ test('expect process.features.typescript to be \'transform\' when --experimental
const result = await spawnPromisified(process.execPath, [
'--no-warnings',
'--experimental-transform-types',
'-p', 'process.features.typescript',
fixtures.path('typescript/echo-process-features-typescript.cjs'),
]);

strictEqual(result.stderr, '');
Expand Down
2 changes: 2 additions & 0 deletions test/fixtures/typescript/echo-process-features-typescript.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
'use strict';
console.log(process.features.typescript);