Skip to content

Commit 3676329

Browse files
authored
fix: tsconfig paths should be relative to baseUrl when set (#1155)
* fix: tsconfig paths should be relative to baseUrl when set * chore: remove unused import
1 parent 2f50f59 commit 3676329

File tree

22 files changed

+152
-20
lines changed

22 files changed

+152
-20
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules/
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v22.12.0
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import { defineConfig } from 'checkly'
2+
3+
const config = defineConfig({
4+
projectName: 'TSConfig Paths Sample Project',
5+
logicalId: 'tsconfig-paths-sample-project',
6+
checks: {
7+
frequency: 10,
8+
locations: ['us-east-1'],
9+
tags: ['mac'],
10+
runtimeId: '2024.09',
11+
checkMatch: '**/__checks__/**/*.check.ts',
12+
browserChecks: {
13+
testMatch: '**/__checks__/**/*.spec.ts',
14+
},
15+
},
16+
cli: {
17+
runLocation: 'us-east-1',
18+
reporters: ['list'],
19+
},
20+
})
21+
22+
export default config

packages/cli/src/services/check-parser/__tests__/check-parser-fixtures/tsconfig-paths-baseurl-relative/package-lock.json

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"name": "tsconfig-paths-sample-project",
3+
"dependencies": {
4+
"checkly": "^4.15.0"
5+
},
6+
"devDependencies": {
7+
"@playwright/test": "^1.51.1",
8+
"typescript": "^5.7.2"
9+
}
10+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import { value1 } from '@internal/lib1'
2+
import { value } from '@/foo/bar'
3+
import { name } from 'lib2'
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export const value = 'file1'
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export const value = 'file2'
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { value } from './file2'
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export const value = 'file2'

0 commit comments

Comments
 (0)