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

chore(deps-dev): bump chai from 4.5.0 to 5.1.2 #195

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .mocharc.yml
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
reporter: spec
require:
- "ts-node/register"
- "chai/register-should.js"
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"build": "tsc -b",
"clean": "tsc -b --clean",
"eslint": "eslint .",
"test": "mocha test/index.ts --require ts-node/register",
"test": "mocha test/index.ts",
"test-cov": "c8 --reporter=lcovonly npm run test"
},
"files": [
Expand Down Expand Up @@ -41,7 +41,7 @@
"@types/mocha": "^10.0.6",
"@types/node": "^22.10.2",
"c8": "^10.1.3",
"chai": "^4.3.6",
"chai": "^5.1.2",
"eslint": "^8.23.0",
"eslint-config-hexo": "^5.0.0",
"eslint-plugin-import": "^2.31.0",
Expand Down
2 changes: 0 additions & 2 deletions test/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import chai from 'chai';
import { join, dirname } from 'path';
import BlueBirdPromise from 'bluebird';
import * as fs from '../lib/fs';
import type { FSWatcher } from 'chokidar';
const should = chai.should();

function createDummyFolder(path: string) {
const filesMap = {
Expand Down
6 changes: 5 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,9 @@
],
"exclude": [
"node_modules"
]
],
"ts-node": {
"transpileOnly": true,
"compilerOptions": { "types": ["node", "mocha", "chai"] }
}
}