Skip to content

Commit

Permalink
chore: update chai setup
Browse files Browse the repository at this point in the history
  • Loading branch information
tpluscode committed Aug 22, 2024
1 parent 260e395 commit 85afea9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
14 changes: 6 additions & 8 deletions mocha-setup.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
/* eslint-disable @typescript-eslint/no-var-requires */
require('chai-snapshot-matcher')

const chai = require('chai')
const sinonChai = require('sinon-chai')
const chaiQuantifiers = require('chai-quantifiers')
const deepEqualInAnyOrder = require('deep-equal-in-any-order')
import chai from 'chai'
import sinonChai from 'sinon-chai'
import chaiQuantifiers from 'chai-quantifiers'
import deepEqualInAnyOrder from 'deep-equal-in-any-order'
import chaiAsPromised from 'chai-as-promised'

chai.use(sinonChai)
chai.use(chaiQuantifiers)
import('chai-as-promised').then((chaiAsPromised) => chai.use(chaiAsPromised.default))
chai.use(chaiAsPromised)
chai.use(deepEqualInAnyOrder)
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "talos",
"private": true,
"type": "module",
"scripts": {
"prepare": "husky install; patch-package",
"lint": "eslint . --ext .ts --quiet --ignore-path .gitignore --ignore-path .eslintignore",
Expand Down

0 comments on commit 85afea9

Please sign in to comment.