Skip to content

Commit

Permalink
test: type rawTransformer
Browse files Browse the repository at this point in the history
  • Loading branch information
exuanbo committed Dec 3, 2023
1 parent 10da460 commit 68426e5
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion __tests__/rawTransformer.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
module.exports = {
// @ts-check
/** @typedef {import('@jest/transform').Transformer} Transformer */

/** @type {Transformer} */
const rawTransformer = {
process(sourceText) {
return {
code: `exports.default = ${JSON.stringify(sourceText)};`,
}
},
}

module.exports = rawTransformer

0 comments on commit 68426e5

Please sign in to comment.