diff --git a/jest.js b/jest.js deleted file mode 100644 index 30cd041..0000000 --- a/jest.js +++ /dev/null @@ -1,10 +0,0 @@ -/* eslint-disable @typescript-eslint/no-var-requires */ -const { transform } = require('./dist/index') - -module.exports = { - process(source, filename, ...args) { - const transformed = transform(source, filename) - const code = transformed ? transformed.code : source - return require('vue-jest').process.call(this, code, filename, ...args) - }, -} diff --git a/package.json b/package.json index 713fa49..b89d1fe 100644 --- a/package.json +++ b/package.json @@ -49,12 +49,12 @@ "types": "index.d.ts", "files": [ "dist", - "jest.js", + "jest-transform.js", "*.d.ts" ], "scripts": { - "build": "rimraf dist && tsup 'src/*.ts' --format cjs,esm --dts && esno scripts/postbuild.ts", - "dev": "tsup 'src/*.ts' --watch src", + "build": "rimraf dist && tsup \"src/*.ts\" --format cjs,esm --dts && esno scripts/postbuild.ts", + "dev": "tsup \"src/*.ts\" --watch src", "lint": "eslint \"{src,test}/**/*.ts\"", "lint:fix": "nr lint -- --fix", "play": "npm -C playground run dev", diff --git a/playground/App.vue b/playground/App.vue index 7bf41ac..7ab2f32 100644 --- a/playground/App.vue +++ b/playground/App.vue @@ -1,12 +1,18 @@ " `; +exports[`transform fixtures playground/Async.vue 1`] = ` +" +" +`; + exports[`transform fixtures playground/Bar.vue 1`] = ` "