Skip to content

escape-string-regexp / ansi-styles error: "Expected a string" #8647

Closed
@built-tkambler

Description

@built-tkambler

🐛 Bug Report

Create a new Jest project. Run tests. Encounter a "TypeError: Expected a string" error.

To Reproduce

git clone [email protected]:tkambler/jest-bug-ansi-styles.git && \
  cd jest-bug-ansi-styles && \
  npm ci && \
  npm run test

Expected behavior

The "Expected a string" error should not occur.

Link to repl or repo (highly encouraged)

https://github.com/tkambler/jest-bug-ansi-styles

Run npx envinfo --preset jest

  System:
    OS: macOS 10.14.5
    CPU: (16) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
  Binaries:
    Node: 10.16.0 - ~/.nvm/versions/node/v10.16.0/bin/node
    Yarn: 1.16.0 - ~/.nvm/versions/node/v10.16.0/bin/yarn
    npm: 6.9.0 - ~/.nvm/versions/node/v10.16.0/bin/npm
  npmPackages:
    jest: ^24.8.0 => 24.8.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions