Skip to content

Commit

Permalink
fix: failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
marufrasully committed Apr 3, 2024
1 parent a27de6e commit 6d0d00a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
5 changes: 1 addition & 4 deletions packages/xml-views-definition/src/controller/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,7 @@ export async function getControllerLocation(
if (el.value?.type !== "string-value") {
return [];
}
const text = el.value.text
.split("/")
.join(".")
.replace(/('|")$/g, "");
const text = el.value.text.split("/").join(".").replace(/'|"/g, "");

const fileUri = await buildFileUri(id, text, manifestPath, exts);
if (!fileUri) {
Expand Down
3 changes: 1 addition & 2 deletions packages/xml-views-definition/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
"compilerOptions": {
"rootDir": ".",
"outDir": "lib",
"baseUrl": ".",
"noImplicitReturns": false
"baseUrl": "."
},
"include": ["src/**/*", "test/**/*", "api.d.ts"]
}
2 changes: 1 addition & 1 deletion tsconfig.base.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"forceConsistentCasingInFileNames": true,
"strict": true,
"noImplicitAny": false,
"noImplicitReturns": true,
"noImplicitReturns": false,
"esModuleInterop": true,
"skipLibCheck": true,
"types": ["node", "jest", "jest-extended"]
Expand Down
3 changes: 3 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@
{
"path": "./packages/xml-views-validation"
},
{
"path": "./packages/xml-views-definition"
},
{
"path": "./test-packages/test-utils"
},
Expand Down

0 comments on commit 6d0d00a

Please sign in to comment.