-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: improve fs mocking with ESM compatibility
- Add proper fs module mocking for ESM environment - Fix test state management between runs - Add comprehensive error handling tests - Update ConfigManager to use dynamic fs imports Co-Authored-By: Michael Latman <[email protected]>
- Loading branch information
1 parent
c2f40b6
commit 9b4e13b
Showing
9 changed files
with
1,756 additions
and
129 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
module.exports = { | ||
presets: [ | ||
['@babel/preset-env', { | ||
targets: { | ||
node: 'current' | ||
}, | ||
modules: 'commonjs' // Force CommonJS modules for testing | ||
}], | ||
'@babel/preset-typescript' | ||
], | ||
env: { | ||
test: { | ||
// Additional test-specific configuration | ||
plugins: [] | ||
} | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.