Skip to content

Commit f5e0016

Browse files
committed
test: Updated tests to support ts 4.9
1 parent a124c0b commit f5e0016

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

test/projects/general/tsconfig.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
"compilerOptions": {
33
"target": "es5",
44
"module": "ESNext",
5-
"outDir": "../__built",
5+
"outDir": "__built",
6+
"moduleResolution" : "node",
67

78
"declaration": true,
89
"baseUrl": "./",
@@ -16,8 +17,8 @@
1617
"esModuleInterop": true,
1718

1819
"plugins": [
19-
{ "transform": "../../src/index.ts" },
20-
{ "transform": "../../src/index.ts", "afterDeclarations": true }
20+
{ "transform": "../../../src/index.ts" },
21+
{ "transform": "../../../src/index.ts", "afterDeclarations": true }
2122
]
2223
}
2324
}

test/tests/transformer/specific.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ describe(`Specific Tests`, () => {
239239

240240
(!skipDts && tsVersion >= 38 ? test : test.skip)(`Resolves nested imports`, () => {
241241
expect(subPackagesFile).transformedMatches(
242-
`export declare type ImportWithChildren = import("./packages/pkg-a").PassThru<import("./packages/pkg-b").PackageBType>`,
242+
`export ${tsVersion < 49 ? `declare ` : ''}type ImportWithChildren = import("./packages/pkg-a").PassThru<import("./packages/pkg-b").PackageBType>`,
243243
{ kind: ["dts"] }
244244
);
245245
});

test/yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5110,10 +5110,10 @@ typed-assert@^1.0.8:
51105110
version "0.0.0"
51115111
uid ""
51125112

5113-
typescript@latest:
5114-
version "4.8.4"
5115-
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.8.4.tgz#c464abca159669597be5f96b8943500b238e60e6"
5116-
integrity sha512-QCh+85mCy+h0IGff8r5XWzOVSbBO+KfeYrMQh7NJ58QujwcE22u+NUSmUxqF+un70P9GXKxa2HCNiTTMJknyjQ==
5113+
typescript@4.9.4:
5114+
version "4.9.4"
5115+
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.9.4.tgz#a2a3d2756c079abda241d75f149df9d561091e78"
5116+
integrity sha512-Uz+dTXYzxXXbsFpM86Wh3dKCxrQqUcVMxwU54orwlJjOpO3ao8L7j5lH+dWfTwgCwIuM9GQ2kvVotzYJMXTBZg==
51175117

51185118
universalify@^2.0.0:
51195119
version "2.0.0"

0 commit comments

Comments
 (0)