Skip to content

v8.0.0

Compare
Choose a tag to compare
@gregberge gregberge released this 06 Mar 08:48
· 67 commits to main since this release
c6d19db

Features

BREAKING CHANGES

  • spawnd now exports { spawd } instead of default to ensure
    compatibilty with ESM
  • toMatch has been renamed toMatchTextContent to avoid collision
    with existing Jest matcher
  • jest-dev-server teardown function now requires processes as argument, see jest-dev-server readme

gobalSetup and globalTeardown in jest-environment-puppeteer

Update Create your own globalSetup and globalTeardown.

Before (v7.x)

const { setup: setupPuppeteer } = require("jest-environment-puppeteer");
const { teardown: teardownPuppeteer } = require("jest-environment-puppeteer");

After (v8.x)

const setupPuppeteer = require("jest-environment-puppeteer/setup");
const teardownPuppeteer = require("jest-environment-puppeteer/teardown");