diff options
Diffstat (limited to 'test/jest/file-transformer.js')
-rw-r--r-- | test/jest/file-transformer.js | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/test/jest/file-transformer.js b/test/jest/file-transformer.js deleted file mode 100644 index 81ea49b9a1..0000000000 --- a/test/jest/file-transformer.js +++ /dev/null @@ -1,17 +0,0 @@ -/* eslint-env node */ - -module.exports = { - process (sourceContents, filename) { - // The file is a source file and can contain @test-module annotations - if (filename.indexOf('js/src') !== -1) { - if (sourceContents.includes('@test-module')) { - // Annotation detected, add some code to the source file - const moduleName = sourceContents.match(/@test-module (.*)/)[1]; - // eslint-disable-next-line no-param-reassign - sourceContents += '\r\nmodule.exports = ' + moduleName + ';\r\n'; - } - return sourceContents; - } - return sourceContents; - }, -}; |