Skip to content

Commit 5cd1ca5

Browse files
committed
fix: package.json
1 parent 8aba29d commit 5cd1ca5

File tree

9 files changed

+11
-10
lines changed

9 files changed

+11
-10
lines changed

.eslintrc.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
"import/no-named-default": 0,
5151
"import/no-cycle": 0,
5252
"prefer-const": "off",
53-
"no-import-assign": 0
53+
"no-import-assign": 0,
54+
"no-restricted-globals": 0
5455
}
5556
}

docs/helpers/Expect.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ expects members of two arrays are deeply equal
159159
- `targetData` **any**
160160
- `jsonSchema` **any**
161161
- `customErrorMsg` **any?**
162-
- `ajvOptions` **any** Pass AJV options
162+
- `ajvOptions` **any?** Pass AJV options
163163

164164
### expectLengthAboveThan
165165

lib/codecept.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import glob from 'glob';
33
import fsPath, { resolve, dirname } from 'path';
44
import generated from '@codeceptjs/helper';
55
import { fileURLToPath } from 'url';
6-
import {createRequire} from "node:module";
6+
import { createRequire } from 'node:module';
77
import container from './container.js';
88
import Config from './config.js';
99
import * as event from './event.js';

lib/command/gherkin/snippets.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ export default function (genPath, options) {
8686
};
8787

8888
const parseFile = (file) => {
89-
console.log(file)
9089
const ast = parser.parse(fs.readFileSync(file).toString());
9190
for (const child of ast.feature.children) {
9291
if (child.scenario.keyword === 'Scenario Outline') continue; // skip scenario outline

lib/command/run.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1+
// @ts-ignore
2+
import importSync from 'import-sync';
13
import {
24
getConfig, printError, getTestRoot, createOutputDir,
35
} from './utils.js';
46
import Config from '../config.js';
57
import Codecept from '../codecept.js';
6-
import importSync from 'import-sync';
78

89
export default async function (test, options) {
910
// registering options globally to use in config

lib/command/workers/runTests.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ let stdout = '';
1919
const stderr = '';
2020

2121
// Requiring of Codecept need to be after tty.getWindowSize is available.
22-
//const Codecept = importSync(process.env.CODECEPT_CLASS_PATH || '../../codecept.js');
22+
// const Codecept = importSync(process.env.CODECEPT_CLASS_PATH || '../../codecept.js');
2323

2424
const {
2525
options, tests, testRoot, workerIndex,

lib/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import fs from 'fs';
22
import path from 'path';
3+
import importSync from 'import-sync';
34
import {
45
fileExists, isFile, deepMerge, deepClone,
56
} from './utils.js';
6-
import importSync from "import-sync";
77

88
const defaultConfig = {
99
output: './_output',

lib/container.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import glob from 'glob';
2-
import path, {dirname} from 'path';
2+
import path, { dirname } from 'path';
33
import importSync from 'import-sync';
4+
import { fileURLToPath } from 'url';
45
import { MetaStep } from './step.js';
56
import {
67
fileExists, isFunction, isAsyncFunction, deepMerge,
@@ -13,7 +14,6 @@ import * as WorkerStorage from './workerStorage.js';
1314
import { store } from './store.js';
1415

1516
import { actor } from './actor.js';
16-
import {fileURLToPath} from "url";
1717

1818
let container = {
1919
helpers: {},

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@
176176
"node": ">=16.0",
177177
"npm": ">=5.6.0"
178178
},
179-
"type": "module"
179+
"type": "module",
180180
"es6": true,
181181
"tsd": {
182182
"directory": "typings",

0 commit comments

Comments
 (0)