Skip to content

Commit 7d38fc4

Browse files
committed
Fix failing tests
1 parent f48a14b commit 7d38fc4

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

packages/pwa-kit-extension-sdk/src/configs/webpack/overrides-resolver-loader.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,7 @@ describe('Overrides Resolver Loader', () => {
356356
),
357357
options: {
358358
baseDir: '/',
359+
resolveExtensions: ['.ts', '.tsx', '.js', '.jsx', '.json'],
359360
resolveOptions: {
360361
// Override the `fs` methods used by `resolve` to point to the virtual file system
361362
existsSync: (filePath: string) => {

packages/pwa-kit-extension-sdk/src/configs/webpack/overrides-resolver-loader.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ const OverrideResolverLoader = function (this: LoaderContext<any>) {
5454
// use `packageIterator` in the "resolve" function used later on.
5555
const {resourcePath, _compiler} = this
5656

57-
// TECH DEPT: Accessing `_compiler` is a bit of a hack, but it works. We should look to work around this.
57+
// TECH DEBT: Accessing `_compiler` is a bit of a hack, but it works. We should look to work around this.
5858
const compiler = _compiler as ExtendedCompiler
5959
const projectRelPath = resourcePath.split(`${SRC_FOLDER}${path.sep}`)[1].split('.')[0] // File path relative to the project directory without file extension
6060
const projectPath = resourcePath.split(SRC_FOLDER)[0]

0 commit comments

Comments
 (0)