Skip to content

Commit

Permalink
fix: valid js config file (#597)
Browse files Browse the repository at this point in the history
  • Loading branch information
CristiCanizales authored Aug 29, 2024
1 parent 7f7aeb4 commit e53b96b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ it('configureSfdxProject()', async () => {
expect(jsconfigForceApp.compilerOptions.experimentalDecorators).toBe(true);
expect(jsconfigForceApp.include[0]).toBe('**/*');
expect(jsconfigForceApp.include[1]).toBe('../../../../.sfdx/typings/lwc/**/*.d.ts');
expect(jsconfigForceApp.compilerOptions.baseUrl).toBeUndefined(); // baseUrl/paths set when indexing
expect(jsconfigForceApp.compilerOptions.baseUrl).toBeDefined(); // baseUrl/paths set when indexing
expect(jsconfigForceApp.typeAcquisition).toEqual({ include: ['jest'] });
// verify updated jsconfig.json
const jsconfigUtilsContent = fs.readFileSync(jsconfigPathUtils, 'utf8');
Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
{
"compilerOptions": {
"experimentalDecorators": true
"experimentalDecorators": true,
"baseUrl": ".",
"paths": {
"c/*": [
"*"
]
}
},
"include": [
"**/*",
"${project_root}/.sfdx/typings/lwc/**/*.d.ts"
],
"paths": {
"c/*": [
"*"
]
},
"typeAcquisition": {
"include": [
"jest"
]
}
}
}

0 comments on commit e53b96b

Please sign in to comment.