Skip to content

Commit

Permalink
update file export
Browse files Browse the repository at this point in the history
Signed-off-by: Jackie Han <jkhanjob@gmail.com>
  • Loading branch information
jackiehanyang committed May 30, 2023
1 parent 2778eca commit b29e75b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/mocks/transformMock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
* The transform configuration in Jest allows you to
* specify custom transformation logic for specific file types during testing.
*/
export = {
module.exports = {
/**
* This function is responsible for transforming the file.
* @returns the string module.exports = {};, which is an empty CommonJS module.
*/
process(): { code: string } {
process() {
return {
code: `module.exports = {};`,
};
Expand All @@ -21,7 +21,7 @@ export = {
* The cache key helps Jest determine if a file needs to be retransformed or if it can use the cached transformation result.
* @returns a unique string that serves as a cache key for the transformation.
*/
getCacheKey(): string {
getCacheKey() {
return 'svgTransform';
},
};

0 comments on commit b29e75b

Please sign in to comment.