Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: Convert tests to ESM and upgrade Chai #297

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Commits on Mar 24, 2024

  1. Convert tests to ESM

    Convert all the tests to ESM (`.mjs`) in preparation for Chai 5, which drops support for CommonJS.
    - replace `require` with `import` throughout.
    - create a global `chai` object to replace the old `chai = require('chai')`.
    - rename tests from '.js' to '.mjs'.
    eatyourgreens committed Mar 24, 2024
    Configuration menu
    Copy the full SHA
    44b7c5a View commit details
    Browse the repository at this point in the history
  2. Remove chai-http

    eatyourgreens committed Mar 24, 2024
    Configuration menu
    Copy the full SHA
    6757dff View commit details
    Browse the repository at this point in the history
  3. Fix global expect

    eatyourgreens committed Mar 24, 2024
    Configuration menu
    Copy the full SHA
    e9efdbd View commit details
    Browse the repository at this point in the history

Commits on Apr 14, 2024

  1. Install Chai v5.1.0

    eatyourgreens committed Apr 14, 2024
    Configuration menu
    Copy the full SHA
    b6f6f85 View commit details
    Browse the repository at this point in the history
  2. Remove chai-as-promised

    eatyourgreens committed Apr 14, 2024
    Configuration menu
    Copy the full SHA
    3e1c2df View commit details
    Browse the repository at this point in the history