You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I get the following error while running the eslint command
PS C:\WORK\AutomationPlayground\codeceptjs-boilerplate-project> eslint "**/*.ts" --ignore-pattern node_modules/
Oops! Something went wrong! :(
ESLint: 8.15.0
TypeError: Cannot read properties of undefined (reading 'property')
Occurred while linting C:\WORK\AutomationPlayground\codeceptjs-boilerplate-project\src\tests\rest\Get.test.ts:3
Rule: "codeceptjs/no-actor-in-scenario"
at C:\WORK\AutomationPlayground\codeceptjs-boilerplate-project\node_modules\eslint-plugin-codeceptjs\lib\rules\no-actor-in-scenario.js:30:63
at Array.map (<anonymous>)
at C:\WORK\AutomationPlayground\codeceptjs-boilerplate-project\node_modules\eslint-plugin-codeceptjs\lib\rules\no-actor-in-scenario.js:29:32
at Array.map (<anonymous>)
at C:\WORK\AutomationPlayground\codeceptjs-boilerplate-project\node_modules\eslint-plugin-codeceptjs\lib\rules\no-actor-in-scenario.js:27:34
at Array.map (<anonymous>)
at CallExpression (C:\WORK\AutomationPlayground\codeceptjs-boilerplate-project\node_modules\eslint-plugin-codeceptjs\lib\rules\no-actor-in-scenario.js:21:26)
at ruleErrorHandler (C:\WORK\AutomationPlayground\codeceptjs-boilerplate-project\node_modules\eslint\lib\linter\linter.js:1114:28)
at C:\WORK\AutomationPlayground\codeceptjs-boilerplate-project\node_modules\eslint\lib\linter\safe-emitter.js:45:58
at Array.forEach (<anonymous>)
This is Get.test.ts file:
Feature('GET tests').tag('@REST')
Scenario('Verify a successful call', async ({ I }) => {
await I.sendGetRequest('/api/users?page=2')
I.seeResponseCodeIsSuccessful()
})
Scenario('Verify a not found call', async ({ I }) => {
await I.sendGetRequest('/api/users/266')
I.seeResponseCodeIsClientError()
})
Scenario('Verify getting a single user', async ({ I }) => {
const { data } = await I.sendGetRequest('/api/users/2')
I.seeResponseContainsKeys(data)
I.seeResponseValidByCallback(({ data, expect }) => {
expect(data.id)
})
})
Scenario('Verify getting list of users', async ({ I }) => {
const { data } = await I.sendGetRequest('/api/users?page=2')
I.seeResponseContainsKeys(data)
I.seeResponseContainsJson({
page: 2,
total: 12,
per_page: 6,
})
})
I get the following error while running the eslint command
This is Get.test.ts file:
This is the .eslintrc file:
This is my package.json:
Can you help resolve the error?
The text was updated successfully, but these errors were encountered: