Skip to content
This repository was archived by the owner on Oct 10, 2021. It is now read-only.
This repository was archived by the owner on Oct 10, 2021. It is now read-only.

Running tape with custom options #268

@ksmithbaylor

Description

@ksmithbaylor

I'm testing my React components with Tape, which means I need to run the tests through babel to transpile the JSX. Here's the command I use to run my tests:

NODE_ENV=test tape -r babel-register 'src/**/*.test.js'

The important part is -r babel-register, which transpiles the code right before running it. I'm trying to use zuul with this setup, but I'm at a loss for how to pass options to tape. Is this currently possible? Or do I need to pull in browserify? The project is currently using webpack and we don't want to change that.

It may also be possible to add webpack support. For that, I could see an additional field in .zuul.yml like this:

webpack:
    config: webpack.config.js

If this is something that more people want, I'd be happy to get started on a pull request!

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