forked from zazuko/cube-creator
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmocha-setup.js
More file actions
30 lines (24 loc) · 836 Bytes
/
mocha-setup.js
File metadata and controls
30 lines (24 loc) · 836 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/* eslint-disable import/no-unresolved */
/* eslint-disable import/no-extraneous-dependencies */
/* eslint-disable @typescript-eslint/no-var-requires */
require('@babel/register')({
configFile: './babel.config.json',
extensions: ['.js', '.jsx', '.ts', '.tsx'],
})
require('dotenv').config({
path: require('path').resolve(__dirname, '.local.env'),
})
require('chai-snapshot-matcher')
const chai = require('chai')
const sinonChai = require('sinon-chai')
const quantifiers = require('chai-quantifiers')
const chaiAsPromised = require('chai-as-promised')
chai.use(chaiAsPromised)
chai.use(quantifiers)
require('./packages/testing/lib/chaiShapeMatcher')
chai.use(sinonChai)
// Dynamically import mocha-chai-rdf
;(async () => {
const rdfMatchers = await import('mocha-chai-rdf/matchers.js')
chai.use(rdfMatchers.default)
})()