chai 5.2.0 → 5.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/chai.js +397 -347
- package/lib/chai/assertion.js +167 -143
- package/lib/chai/core/assertions.js +108 -109
- package/lib/chai/interface/assert.js +13 -13
- package/lib/chai/interface/should.js +1 -1
- package/lib/chai/utils/addChainableMethod.js +12 -12
- package/lib/chai/utils/addMethod.js +3 -3
- package/lib/chai/utils/addProperty.js +2 -2
- package/lib/chai/utils/expectTypes.js +6 -6
- package/lib/chai/utils/flag.js +4 -3
- package/lib/chai/utils/getMessage.js +8 -8
- package/lib/chai/utils/getOperator.js +7 -7
- package/lib/chai/utils/getProperties.js +2 -2
- package/lib/chai/utils/inspect.js +1 -1
- package/lib/chai/utils/objDisplay.js +2 -2
- package/lib/chai/utils/overwriteChainableMethod.js +7 -7
- package/lib/chai/utils/overwriteMethod.js +5 -5
- package/lib/chai/utils/overwriteProperty.js +4 -4
- package/lib/chai/utils/proxify.js +10 -9
- package/lib/chai/utils/test.js +1 -1
- package/lib/chai/utils/transferFlags.js +2 -2
- package/package.json +12 -4
- package/.prettierrc.json +0 -10
- package/CODEOWNERS +0 -1
- package/CODE_OF_CONDUCT.md +0 -58
- package/CONTRIBUTING.md +0 -218
- package/History.md +0 -1059
- package/ReleaseNotes.md +0 -737
- package/eslint.config.js +0 -26
- package/web-test-runner.config.js +0 -20
package/eslint.config.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import jsdoc from "eslint-plugin-jsdoc";
|
|
2
|
-
import eslintjs from "@eslint/js";
|
|
3
|
-
|
|
4
|
-
const {configs: eslintConfigs} = eslintjs;
|
|
5
|
-
|
|
6
|
-
export default [
|
|
7
|
-
jsdoc.configs["flat/recommended"],
|
|
8
|
-
eslintConfigs["recommended"],
|
|
9
|
-
{
|
|
10
|
-
languageOptions: {
|
|
11
|
-
// if we ever use more globals than this, pull in the `globals` package
|
|
12
|
-
globals: {
|
|
13
|
-
console: false
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
rules: {
|
|
17
|
-
"jsdoc/require-param-description": "off",
|
|
18
|
-
"jsdoc/require-returns-description": "off",
|
|
19
|
-
"jsdoc/tag-lines": ["error", "any", { startLines: 1 }],
|
|
20
|
-
"no-unused-vars": ["error", {
|
|
21
|
-
argsIgnorePattern: "^_",
|
|
22
|
-
caughtErrorsIgnorePattern: "^_"
|
|
23
|
-
}]
|
|
24
|
-
},
|
|
25
|
-
},
|
|
26
|
-
];
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { fromRollup } from "@web/dev-server-rollup";
|
|
2
|
-
import rollupCommonjs from "@rollup/plugin-commonjs";
|
|
3
|
-
|
|
4
|
-
const commonjs = fromRollup(rollupCommonjs);
|
|
5
|
-
|
|
6
|
-
export default {
|
|
7
|
-
nodeResolve: true,
|
|
8
|
-
files: [
|
|
9
|
-
"test/*.js",
|
|
10
|
-
"!test/virtual-machines.js"
|
|
11
|
-
],
|
|
12
|
-
plugins: [
|
|
13
|
-
commonjs({
|
|
14
|
-
include: [
|
|
15
|
-
// the commonjs plugin is slow, list the required packages explicitly:
|
|
16
|
-
"**/node_modules/type-detect/**/*",
|
|
17
|
-
],
|
|
18
|
-
}),
|
|
19
|
-
],
|
|
20
|
-
};
|