diff --git a/src/compiler/es-next/index.js b/src/compiler/es-next/index.js index 96cc1c59244..665f8126a7c 100644 --- a/src/compiler/es-next/index.js +++ b/src/compiler/es-next/index.js @@ -11,8 +11,8 @@ import stackCleaningHook from '../../errors/stack-cleaning-hook'; const COMMON_API_PATH = join(__dirname, '../../api/common'); const CWD = process.cwd(); -const FIXTURE_RE = /(^|;|\s+)fixture\s*\.|\(/; -const TEST_RE = /(^|;|\s+)test\s*\.|\(/; +const FIXTURE_RE = /(^|;|\s+)fixture\s*(\.|\(|`)/; +const TEST_RE = /(^|;|\s+)test\s*(\.|\()/; const BABEL_RUNTIME_RE = /^babel-runtime(\\|\/|$)/; var Module = module.constructor;