Skip to content

Pass jesttransformcss options in jest.config #21

@Yankovsky

Description

@Yankovsky

Hey! I have monorepo structure with a slightly different jest.config for different packages, something like:

<root>
- package.json
- - package1
- - - jest.config.js
- - - jesttransformcss.config.js
- - package2
- - - jest.config.js

Now, if I run test command from the root dir it invokes 'test' commands in individual packages. Long story short in that configuration jesttransformcss.config.js is not located by the jest-transform-css.

I've checked jest docs, and, apparently, transformer support passing options like so {'\\.js$': ['babel-jest', {rootMode: 'upward'}]}

Let's support passing options in jest config directly instead of providing a separate config file?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions