Plumeria 19.9

refirst11
refirst11Plumeria Core
Anionix
AnionixPlumeria Core

Plumeria v19.9 adds @plumeria/swc-jest. Components can now be tested in Jest as well as Vitest.

1. @plumeria/swc-jest

@plumeria/core ships types and no runtime, so a component test only works when the runner compiles the styling prop away first. Vitest did that through @plumeria/unplugin. Jest had no transformer for it.

@plumeria/swc-jest compiles the file, then hands it to @swc/jest. Put it where @swc/jest was:

jest.config.js
module.exports = {
  testEnvironment: 'jsdom',
  transform: {
    '^.+\\.(t|j)sx?$': '@plumeria/swc-jest',
  },
};

SWC is configured as before, from .swcrc or from the options next to the transformer. styleProp, withoutLogicalProperties and withoutPhysicalProperties are read by Plumeria; every other key goes to @swc/jest.

Styles imported from another file compile as they do in the build, and Jest's cache follows them: change a shared style and the files that use it are compiled again.

A project on ts-jest, babel-jest or next/jest moves that entry to @plumeria/swc-jest. See @plumeria/swc-jest and Testing.


Release notes

19.9.1 (Oct 6, 2026)

  • no-unknown-css-properties adds a hint to an unknown key that holds an object in css.create: nested selectors start with :, [ or @

19.9.0 (Oct 5, 2026)

  • Add @plumeria/swc-jest, a Jest transformer that compiles Plumeria styles and hands the result to @swc/jest