Back to Oxc

Conformance test results - cypress

apps/oxlint/conformance/snapshots/cypress.md

0.1.12.6 KB
Original Source

Conformance test results - cypress

Summary

Rules

StatusCount%
Total rules12100.0%
Fully passing1191.7%
Partially passing18.3%
Fully failing00.0%
Load errors00.0%
No tests run00.0%

Tests

StatusCount%
Total tests150100.0%
Passing14798.0%
Failing32.0%
Skipped00.0%

Fully Passing Rules

  • assertion-before-screenshot (18 tests)
  • no-assigning-return-values (19 tests)
  • no-async-before (8 tests)
  • no-async-tests (8 tests)
  • no-chained-get (4 tests)
  • no-debug (6 tests)
  • no-force (22 tests)
  • no-pause (6 tests)
  • no-xpath (3 tests)
  • require-data-selectors (22 tests)
  • unsafe-to-chain-command (8 tests)

Rules with Failures

  • no-unnecessary-waiting - 23 / 26 (88.5%)

Rules with Failures Detail

no-unnecessary-waiting

Pass: 23 / 26 (88.5%) Fail: 3 / 26 (11.5%) Skip: 0 / 26 (0.0%)

no-unnecessary-waiting > invalid

js
function customWait (ms = 1) { cy.wait(ms) }
json
{
  "errors": [
    {
      "messageId": "unexpected"
    }
  ]
}

AssertionError [ERR_ASSERTION]: Should have 1 error but had 0: []

0 !== 1

at assertErrorCountIsCorrect (apps/oxlint/dist/plugins-dev.js)
at assertInvalidTestCasePasses (apps/oxlint/dist/plugins-dev.js)
at runInvalidTestCase (apps/oxlint/dist/plugins-dev.js)
at apps/oxlint/dist/plugins-dev.js

no-unnecessary-waiting > invalid

js
const customWait = (ms = 1) => { cy.wait(ms) }
json
{
  "errors": [
    {
      "messageId": "unexpected"
    }
  ]
}

AssertionError [ERR_ASSERTION]: Should have 1 error but had 0: []

0 !== 1

at assertErrorCountIsCorrect (apps/oxlint/dist/plugins-dev.js)
at assertInvalidTestCasePasses (apps/oxlint/dist/plugins-dev.js)
at runInvalidTestCase (apps/oxlint/dist/plugins-dev.js)
at apps/oxlint/dist/plugins-dev.js

no-unnecessary-waiting > invalid

js
const customWait = (ms = 1) => { cy.get(".some-element").wait(ms) }
json
{
  "errors": [
    {
      "messageId": "unexpected"
    }
  ]
}

AssertionError [ERR_ASSERTION]: Should have 1 error but had 0: []

0 !== 1

at assertErrorCountIsCorrect (apps/oxlint/dist/plugins-dev.js)
at assertInvalidTestCasePasses (apps/oxlint/dist/plugins-dev.js)
at runInvalidTestCase (apps/oxlint/dist/plugins-dev.js)
at apps/oxlint/dist/plugins-dev.js