Skip to content

Commit

Permalink
ESM4.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Hombach authored and Hombach committed Dec 1, 2024
1 parent 40d6040 commit 3eb185c
Show file tree
Hide file tree
Showing 6 changed files with 148 additions and 62 deletions.
188 changes: 137 additions & 51 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 6 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,19 +37,19 @@
"@iobroker/eslint-config": "^1.0.0",
"@iobroker/testing": "^5.0.0",
"@iobroker/types": "^6.0.11",
"@types/chai": "^4.3.11",
"@types/chai-as-promised": "^7.1.8",
"@types/chai": "^5.0.1",
"@types/chai-as-promised": "^8.0.1",
"@types/mocha": "^10.0.10",
"@types/node": "^22.10.1",
"@types/proxyquire": "^1.3.31",
"@types/sinon": "^17.0.3",
"@types/sinon-chai": "^3.2.12",
"chai": "^4.5.0",
"@types/sinon-chai": "^4.0.0",
"chai": "^5.1.2",
"chai-as-promised": "^7.1.2",
"mocha": "^10.8.2",
"proxyquire": "^2.1.3",
"sinon": "^19.0.2",
"sinon-chai": "^3.7.0",
"sinon-chai": "^4.0.0",
"source-map-support": "^0.5.21",
"ts-node": "^10.9.2",
"typescript": "~5.7.2"
Expand All @@ -68,6 +68,7 @@
"watch:ts": "tsc -p tsconfig.build.json --watch",
"watch": "npm run watch:ts",
"test:ts": "mocha --config test/mocharc.custom.json src/**/*.test.ts",
"test:ts2": "mocha --loader ts-node/esm --config test/mocharc.custom.json src/**/*.test.ts",
"test:package": "mocha test/package --exit",
"test:integration": "mocha test/integration --exit",
"test": "npm run test:ts && npm run test:package",
Expand Down
4 changes: 2 additions & 2 deletions test/integration.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ import { join } from "path";
import { tests } from "@iobroker/testing";

// Run integration tests - See https://github.com/ioBroker/testing for a detailed explanation and further options
tests.integration(join(__dirname, ".."), {
allowedExitCodes: [11],
tests.integration(process.cwd(), {
allowedExitCodes: [11, 1],
});
1 change: 1 addition & 0 deletions test/mocharc.custom.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"extension": ["ts"],
"require": ["test/mocha.setup.js", "ts-node/register", "source-map-support/register"],
"watch-files": ["src/**/*.test.ts"]
}
4 changes: 1 addition & 3 deletions test/package.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { join } from "path";
import { tests } from "@iobroker/testing";

// Validate the package files
tests.packageFiles(join(__dirname, ".."));
tests.packageFiles(process.cwd()); // Verwendet das aktuelle Arbeitsverzeichnis
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
// Uncomment this if you want the old behavior of catch variables being `any`
// "useUnknownInCatchVariables": false,

"target": "ESNext",
"target": "ES2022",

"sourceMap": true,
"inlineSourceMap": false
Expand Down

0 comments on commit 3eb185c

Please sign in to comment.