Skip to content
This repository was archived by the owner on Dec 25, 2024. It is now read-only.
This repository was archived by the owner on Dec 25, 2024. It is now read-only.

Jest is broken since v0.10.2 #139

Open
@dm4t2

Description

@dm4t2

I'm using a custom Jest transformer for usage with the Ref Sugar syntax:

const { raw } = require('unplugin-vue2-script-setup').default
const transform = raw({ reactivityTransform: true }).transform

module.exports = {
  process(source, filename, ...args) {
    const transformed = transform(source, filename)
    const code = transformed ? transformed.code : source
    return require('@vue/vue2-jest').process.call(this, code, filename, ...args)
  }
}

However, this no longer works when updating from v0.10.1 to v.0.10.2, even with await transform(...).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions