Skip to content

Feat/esm #5045

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 266 commits into
base: 4.x
Choose a base branch
from
Open

Feat/esm #5045

wants to merge 266 commits into from

Conversation

DavertMik
Copy link
Contributor

Refactored to be fully ESM

Should be the base for 4.x branch

DavertMik and others added 30 commits January 7, 2025 02:13
* fixed regression in waitfortext

* fixed wait test for wait for text

* fixed retries for PW waitForText test

---------

Co-authored-by: DavertMik <davert@testomat.io>
* update to async/await style

* update to async/await style
…4724)

* Bump eslint to 9.1.15 and removed dep to eslint-config-airbnb-base

* eslint ^9.17.0

* Re-added no-return-await
Co-authored-by: DavertMik <davert@testomat.io>
#4713)

* fixed pause finishing, added suggest for empty run, included fuse.js for better search

* fixed test

* updated plugins docs

* improved unit tests setup

* fixed interface test for CI mode

* fixed on ci

* added env variable config

---------

Co-authored-by: DavertMik <davert@testomat.io>
* improve the docker compose networks

* improve the docker compose networks

* improve the docker compose networks
* 3.7.0-beta.1

* added check command

* added file

* added debug for container, fixed check command

* added support for custom config -c, added checks to workflows

* fixed check command

* added await for check

---------

Co-authored-by: DavertMik <davert@testomat.io>
* feat: soft assertion

* update as hopeThat module in effects

* fix: docs
* 3.7.0-beta.1

* added notes for test object, use notes for heal reports

* added notes & metadata for tests, improved output

* fixed styles in failing tests

---------

Co-authored-by: DavertMik <davert@testomat.io>
Bumps [typescript](https://github.com/microsoft/TypeScript) from 5.7.2 to 5.7.3.
- [Release notes](https://github.com/microsoft/TypeScript/releases)
- [Changelog](https://github.com/microsoft/TypeScript/blob/main/azure-pipelines.release.yml)
- [Commits](microsoft/TypeScript@v5.7.2...v5.7.3)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [@codeceptjs/detox-helper](https://github.com/codeceptjs/detox-helper) from 1.1.4 to 1.1.5.
- [Release notes](https://github.com/codeceptjs/detox-helper/releases)
- [Commits](codeceptjs/detox-helper@v1.1.4...v1.1.5)

---
updated-dependencies:
- dependency-name: "@codeceptjs/detox-helper"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* initial implementation for step params

* refactored steps

* refactored steps

* fixed refactoring

* fixed typings

* fixed typings

* added steps to export

* added step timeouts tests

* deprecated I.limitTime and I.retry

* fix failed timeout tests

* added test for case insensitive opt

* fixed flakiness of timeout tests

---------

Co-authored-by: DavertMik <davert@testomat.io>
Bumps [electron](https://github.com/electron/electron) from 33.2.1 to 33.3.1.
- [Release notes](https://github.com/electron/electron/releases)
- [Changelog](https://github.com/electron/electron/blob/main/docs/breaking-changes.md)
- [Commits](electron/electron@v33.2.1...v33.3.1)

---
updated-dependencies:
- dependency-name: electron
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [puppeteer](https://github.com/puppeteer/puppeteer) from 23.11.1 to 24.0.0.
- [Release notes](https://github.com/puppeteer/puppeteer/releases)
- [Changelog](https://github.com/puppeteer/puppeteer/blob/main/CHANGELOG.md)
- [Commits](puppeteer/puppeteer@puppeteer-v23.11.1...puppeteer-v24.0.0)

---
updated-dependencies:
- dependency-name: puppeteer
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Copy link

Testomat.io Report 🔴 UNIT-TESTS FAILED
Tests ✔️ 341 tests run
Summary 🔴 1 failed; 🟢 339 passed; 🟡 1 skipped
Duration 🕐 6 seconds
Job 🗂️ Run Unit tests / unit-tests
Operating System 🖥️ Linux X64

🟥 Failures (1)

🔴 AsyncWrapper: should fire events

expected false to be truthy

################[ Failure ]################
AssertionError (strictEqual): expected false to be truthy
    90 |      return recorder
    91 |        .promise()
    92 |        .then(() => {
    93 |          expect(started.called).is.ok
    94 |          expect(beforeSuite.called).is.ok
 >  95 |          expect(afterSuite.called).is.ok
    96 |          expect(before.called).is.ok
    97 |          expect(after.called).is.ok
    98 |        })
    99 |        .catch((err) => {
   100 |          console.error('Recorder promise error:', err)

   at <anonymous> (file:///home/runner/work/CodeceptJS/CodeceptJS/test/unit/mocha/asyncWrapper_test.js:95:39)

🐢 Slowest Tests

  • Workers: should run worker with multiple config (1.607 seconds)
  • subtitles: should capture separate steps for separate tests (0.604 seconds)
  • Workers: should create worker by function (0.552 seconds)
  • Workers: should run simple worker (0.535 seconds)
  • Workers: should run worker with custom config (0.528 seconds)

Copy link

Testomat.io Report 🔴 UNIT-TESTS FAILED
Tests ✔️ 341 tests run
Summary 🔴 1 failed; 🟢 339 passed; 🟡 1 skipped
Duration 🕐 6 seconds
Job 🗂️ Run Unit tests / unit-tests
Operating System 🖥️ Linux X64

🟥 Failures (1)

🔴 AsyncWrapper: should fire events

expected false to be truthy

################[ Failure ]################
AssertionError (strictEqual): expected false to be truthy
    90 |      return recorder
    91 |        .promise()
    92 |        .then(() => {
    93 |          expect(started.called).is.ok
    94 |          expect(beforeSuite.called).is.ok
 >  95 |          expect(afterSuite.called).is.ok
    96 |          expect(before.called).is.ok
    97 |          expect(after.called).is.ok
    98 |        })
    99 |        .catch((err) => {
   100 |          console.error('Recorder promise error:', err)

   at <anonymous> (file:///home/runner/work/CodeceptJS/CodeceptJS/test/unit/mocha/asyncWrapper_test.js:95:39)

🐢 Slowest Tests

  • Workers: should run worker with multiple config (1.616 seconds)
  • Workers: should run simple worker (0.613 seconds)
  • subtitles: should capture separate steps for separate tests (0.603 seconds)
  • Workers: Should able to pass data from workers to main thread and vice versa (0.517 seconds)
  • Workers: should run worker with custom config (0.515 seconds)

Copy link

Testomat.io Report 🔴 BUILD FAILED
Tests ✔️ 1 tests run
Summary 🔴 1 failed; 🟢 0 passed; 🟡 0 skipped
Duration 🕐 2 minutes, 0 seconds
Job 🗂️ TestCafe Tests / build
Operating System 🖥️ Linux X64

🟥 Failures (1)

🔴 TestCafe: "before all" hook in "TestCafe"

Timeout of 120000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/home/runner/work/CodeceptJS/CodeceptJS/test/helper/TestCafe_test.js)

################[ Failure ]################
Error: Timeout of 120000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/home/runner/work/CodeceptJS/CodeceptJS/test/helper/TestCafe_test.js)

🐢 Slowest Tests

  • TestCafe: "before all" hook in "TestCafe" (2 minutes, 0.001 seconds)

Copy link

Testomat.io Report 🔴 RUNNER-TESTS FAILED
Tests ✔️ 194 tests run
Summary 🔴 144 failed; 🟢 49 passed; 🟡 1 skipped
Duration 🕐 5 minutes, 57 seconds
Job 🗂️ Run Unit tests / runner-tests
Operating System 🖥️ Linux X64

🟥 Failures (20)

🔴 BDD Gherkin: should run feature files

The expression evaluated to a falsy value: assert(!err)

################[ Failure ]################
AssertionError (==): The expression evaluated to a falsy value:

  assert(!err)



+ expected - actual
+ true
- false

   36 |      stdout.should.include('And I have product with $1000 price')
   37 |      stdout.should.include('Then I should see that total number of products is 2')
   38 |      stdout.should.include('And my order amount is $1600')
   39 |      stdout.should.not.include('I add item 600') // 'Given' actor's non-gherkin step check
   40 |      stdout.should.not.include('I see sum 1600') // 'And' actor's non-gherkin step check
 > 41 |      assert(!err)
   42 |      done()
   43 |    })
   44 |  })
   45 |
   46 |  it('should print substeps in debug mode', done => {

   at <anonymous> (file:///home/runner/work/CodeceptJS/CodeceptJS/test/runner/bdd_test.js:41:7)

🔴 BDD Gherkin: should print substeps in debug mode

The expression evaluated to a falsy value: assert(!err)

################[ Failure ]################
AssertionError (==): The expression evaluated to a falsy value:

  assert(!err)



+ expected - actual
+ true
- false

   53 |      stdout.should.include('I add item 1000')
   54 |      stdout.should.include('Then I should see that total number of products is 2')
   55 |      stdout.should.include('I see num 2')
   56 |      stdout.should.include('And my order amount is $1600')
   57 |      stdout.should.include('I see sum 1600')
 > 58 |      assert(!err)
   59 |      done()
   60 |    })
   61 |  })
   62 |
   63 |  it('should print events in nodejs debug mode', done => {

   at <anonymous> (file:///home/runner/work/CodeceptJS/CodeceptJS/test/runner/bdd_test.js:58:7)

🔴 BDD Gherkin: should print events in nodejs debug mode

The expression evaluated to a falsy value: assert(!err)

################[ Failure ]################
AssertionError (==): The expression evaluated to a falsy value:

  assert(!err)



+ expected - actual
+ true
- false

   65 |      stderr.should.include('Emitted | step.start (I add product "Harry Potter", 5)')
   66 |      stdout.should.include('name            | category        | price')
   67 |      stdout.should.include('Harry Potter    | Books           | 5')
   68 |      stdout.should.include('iPhone 5        | Smartphones     | 1200 ')
   69 |      stdout.should.include('Nuclear Bomb    | Weapons         | 100000')
 > 70 |      assert(!err)
   71 |      done()
   72 |    })
   73 |  })
   74 |
   75 |  it('should obfuscate secret substeps in debug mode', done => {

   at <anonymous> (file:///home/runner/work/CodeceptJS/CodeceptJS/test/runner/bdd_test.js:70:7)

🔴 BDD Gherkin: should obfuscate secret substeps in debug mode

The expression evaluated to a falsy value: assert(!err)

################[ Failure ]################
AssertionError (==): The expression evaluated to a falsy value:

  assert(!err)



+ expected - actual
+ true
- false

   74 |
   75 |  it('should obfuscate secret substeps in debug mode', done => {
   76 |    exec(config_run_config('codecept.bdd.js') + ' --debug --grep "Secrets"', (err, stdout, stderr) => {
   77 |      stdout.should.include('Given I login') // feature
   78 |      stdout.should.not.include('password')
 > 79 |      assert(!err)
   80 |      done()
   81 |    })
   82 |  })
   83 |
   84 |  it('should run feature with examples files', done => {

   at <anonymous> (file:///home/runner/work/CodeceptJS/CodeceptJS/test/runner/bdd_test.js:79:7)

🔴 BDD Gherkin: should run feature with examples files

The expression evaluated to a falsy value: assert(!err)

################[ Failure ]################
AssertionError (==): The expression evaluated to a falsy value:

  assert(!err)



+ expected - actual
+ true
- false

    95 |      stdout.should.include(' order discount {"price":"30","total":"27.0"}')
    96 |      stdout.should.include(' Given I have product with price 30$ in my cart')
    97 |
    98 |      stdout.should.include(' order discount {"price":"50","total":"45.0"}')
    99 |      stdout.should.include(' Given I have product with price 50$ in my cart')
 > 100 |      assert(!err)
   101 |      done()
   102 |    })
   103 |  })
   104 |
   105 |  it('should run feature with table and examples files', done => {

   at <anonymous> (file:///home/runner/work/CodeceptJS/CodeceptJS/test/runner/bdd_test.js:100:7)

🔴 BDD Gherkin: should run feature with table and examples files

The expression evaluated to a falsy value: assert(!err)

################[ Failure ]################
AssertionError (==): The expression evaluated to a falsy value:

  assert(!err)



+ expected - actual
+ true
- false

   106 |    exec(config_run_config('codecept.bdd.js') + ' --steps --grep "Include Examples in dataTtable placeholder"', (err, stdout, stderr) => {
   107 |      stdout.should.include('name            | Nuclear Bomb ')
   108 |      stdout.should.include('price           | 20 ')
   109 |      stdout.should.include('name            | iPhone 5 ')
   110 |      stdout.should.include('price           | 10 ')
 > 111 |      assert(!err)
   112 |      done()
   113 |    })
   114 |  })
   115 |
   116 |  it('should show data from examples in test title', done => {

   at <anonymous> (file:///home/runner/work/CodeceptJS/CodeceptJS/test/runner/bdd_test.js:111:7)

🔴 BDD Gherkin: should show data from examples in test title

The expression evaluated to a falsy value: assert(!err)

################[ Failure ]################
AssertionError (==): The expression evaluated to a falsy value:

  assert(!err)



+ expected - actual
+ true
- false

   118 |      stdout.should.include('order a product with discount - iPhone 5 - 10  @IncludeExamplesIndataTtable')
   119 |      stdout.should.include('name            | Nuclear Bomb ')
   120 |      stdout.should.include('price           | 20 ')
   121 |      stdout.should.include('name            | iPhone 5 ')
   122 |      stdout.should.include('price           | 10 ')
 > 123 |      assert(!err)
   124 |      done()
   125 |    })
   126 |  })
   127 |
   128 |  it('should run feature with tables', done => {

   at <anonymous> (file:///home/runner/work/CodeceptJS/CodeceptJS/test/runner/bdd_test.js:123:7)

🔴 BDD Gherkin: should run feature with tables

The expression evaluated to a falsy value: assert(!err)

################[ Failure ]################
AssertionError (==): The expression evaluated to a falsy value:

  assert(!err)



+ expected - actual
+ true
- false

   131 |      stdout.should.include('name')
   132 |      stdout.should.include('Harry Potter')
   133 |      stdout.should.include('Smartphones')
   134 |      stdout.should.include('100000')
   135 |      stdout.should.include('Then my order amount is $101205')
 > 136 |      assert(!err)
   137 |      done()
   138 |    })
   139 |  })
   140 |
   141 |  it('should run feature with tables contain long text', done => {

   at <anonymous> (file:///home/runner/work/CodeceptJS/CodeceptJS/test/runner/bdd_test.js:136:7)

🔴 BDD Gherkin: should run feature with tables contain long text

The expression evaluated to a falsy value: assert(!err)

################[ Failure ]################
AssertionError (==): The expression evaluated to a falsy value:

  assert(!err)



+ expected - actual
+ true
- false

   141 |  it('should run feature with tables contain long text', done => {
   142 |    exec(config_run_config('codecept.bdd.js') + ' --steps --grep "Checkout products"', (err, stdout, stderr) => {
   143 |      stdout.should.include('Given I have products in my cart')
   144 |      stdout.should.include('name')
   145 |      stdout.should.include('Harry Potter and the deathly hallows')
 > 146 |      assert(!err)
   147 |      done()
   148 |    })
   149 |  })
   150 |
   151 |  it('should run feature with long strings', done => {

   at <anonymous> (file:///home/runner/work/CodeceptJS/CodeceptJS/test/runner/bdd_test.js:146:7)

🔴 BDD Gherkin: should run feature with long strings

The expression evaluated to a falsy value: assert(!err)

################[ Failure ]################
AssertionError (==): The expression evaluated to a falsy value:

  assert(!err)



+ expected - actual
+ true
- false

   151 |  it('should run feature with long strings', done => {
   152 |    exec(config_run_config('codecept.bdd.js') + ' --steps --grep "Checkout string"', (err, stdout, stderr) => {
   153 |      stdout.should.include('Given I have product described as')
   154 |      stdout.should.include('The goal of the product description is to provide the customer with enough information to compel them to want to buy the product immediately.')
   155 |      stdout.should.include('Then my order amount is $582')
 > 156 |      assert(!err)
   157 |      done()
   158 |    })
   159 |  })
   160 |
   161 |  it('should run feature by file name', done => {

   at <anonymous> (file:///home/runner/work/CodeceptJS/CodeceptJS/test/runner/bdd_test.js:156:7)

🔴 BDD Gherkin: should run feature by file name

The expression evaluated to a falsy value: assert(!err)

################[ Failure ]################
AssertionError (==): The expression evaluated to a falsy value:

  assert(!err)



+ expected - actual
+ true
- false

   164 |      stdout.should.include('checkout 3 products')
   165 |      stdout.should.not.include('Checkout string')
   166 |      stdout.should.not.include('describe product')
   167 |      stdout.should.not.include('Checkout process')
   168 |      stdout.should.not.include('Checkout examples process')
 > 169 |      assert(!err)
   170 |      done()
   171 |    })
   172 |  })
   173 |
   174 |  it('should run feature by scenario name', done => {

   at <anonymous> (file:///home/runner/work/CodeceptJS/CodeceptJS/test/runner/bdd_test.js:169:7)

🔴 BDD Gherkin: should run feature by scenario name

expected 'CodeceptJS v3.7.3 #StandWithUkraine\n' to not include 'Checkout string'

################[ Failure ]################
AssertionError (notStrictEqual): expected 'CodeceptJS v3.7.3 #StandWithUkraine\n…' to not include 'Checkout string'
   173 |
   174 |  it('should run feature by scenario name', done => {
   175 |    exec(config_run_config('codecept.bdd.js') + ' --grep "checkout 3 products" --steps', (err, stdout, stderr) => {
   176 |      stdout.should.include('Checkout product')
   177 |      stdout.should.include('checkout 3 products')
 > 178 |      stdout.should.not.include('Checkout string')
   179 |      stdout.should.not.include('describe product')
   180 |      stdout.should.not.include('Checkout process')
   181 |      stdout.should.not.include('Checkout examples process')
   182 |      assert(!err)
   183 |      done()

   at <anonymous> (file:///home/runner/work/CodeceptJS/CodeceptJS/test/runner/bdd_test.js:178:25)

🔴 BDD Gherkin: should run feature by tag name

The expression evaluated to a falsy value: assert(!err)

################[ Failure ]################
AssertionError (==): The expression evaluated to a falsy value:

  assert(!err)



+ expected - actual
+ true
- false

   189 |      stdout.should.include('I have product with $600 price in my cart')
   190 |      stdout.should.not.include('Checkout string')
   191 |      stdout.should.not.include('describe product')
   192 |      stdout.should.not.include('Checkout table')
   193 |      stdout.should.not.include('Checkout examples process')
 > 194 |      assert(!err)
   195 |      done()
   196 |    })
   197 |  })
   198 |
   199 |  it('should run scenario by tag name', done => {

   at <anonymous> (file:///home/runner/work/CodeceptJS/CodeceptJS/test/runner/bdd_test.js:194:7)

🔴 BDD Gherkin: should run scenario by tag name

The expression evaluated to a falsy value: assert(!err)

################[ Failure ]################
AssertionError (==): The expression evaluated to a falsy value:

  assert(!err)



+ expected - actual
+ true
- false

   201 |      stdout.should.include('I have product with $600 price in my cart')
   202 |      stdout.should.not.include('Checkout string')
   203 |      stdout.should.not.include('describe product')
   204 |      stdout.should.not.include('Checkout table')
   205 |      stdout.should.not.include('Checkout examples process')
 > 206 |      assert(!err)
   207 |      done()
   208 |    })
   209 |  })
   210 |
   211 |  it('should run scenario outline by tag', done => {

   at <anonymous> (file:///home/runner/work/CodeceptJS/CodeceptJS/test/runner/bdd_test.js:206:7)

🔴 BDD Gherkin: should run scenario outline by tag

The expression evaluated to a falsy value: assert(!err)

################[ Failure ]################
AssertionError (==): The expression evaluated to a falsy value:

  assert(!err)



+ expected - actual
+ true
- false

   210 |
   211 |  it('should run scenario outline by tag', done => {
   212 |    exec(config_run_config('codecept.bdd.js') + ' --grep "@user" --steps', (err, stdout, stderr) => {
   213 |      stdout.should.not.include('0 passed')
   214 |      stdout.should.include('I have product with price 10$')
 > 215 |      assert(!err)
   216 |      done()
   217 |    })
   218 |  })
   219 |
   220 |  it('should run scenario and scenario outline by tags', done => {

   at <anonymous> (file:///home/runner/work/CodeceptJS/CodeceptJS/test/runner/bdd_test.js:215:7)

🔴 BDD Gherkin: should run scenario and scenario outline by tags

The expression evaluated to a falsy value: assert(!err)

################[ Failure ]################
AssertionError (==): The expression evaluated to a falsy value:

  assert(!err)



+ expected - actual
+ true
- false

   221 |    exec(config_run_config('codecept.bdd.js') + ' --grep "@user|@very" --steps', (err, stdout, stderr) => {
   222 |      stdout.should.not.include('0 passed')
   223 |      stdout.should.include('I have product with price 10$')
   224 |      stdout.should.include('I have product with $600 price in my cart')
   225 |      stdout.should.include('6 passed')
 > 226 |      assert(!err)
   227 |      done()
   228 |    })
   229 |  })
   230 |
   231 |  it('should run scenario and scenario outline by tags', done => {

   at <anonymous> (file:///home/runner/work/CodeceptJS/CodeceptJS/test/runner/bdd_test.js:226:7)

🔴 BDD Gherkin: should run scenario and scenario outline by tags

The expression evaluated to a falsy value: assert(!err)

################[ Failure ]################
AssertionError (==): The expression evaluated to a falsy value:

  assert(!err)



+ expected - actual
+ true
- false

   232 |    exec(config_run_config('codecept.bdd.js') + ' --grep "@user|@very" --steps', (err, stdout, stderr) => {
   233 |      stdout.should.not.include('0 passed')
   234 |      stdout.should.include('I have product with price 10$')
   235 |      stdout.should.include('I have product with $600 price in my cart')
   236 |      stdout.should.include('6 passed')
 > 237 |      assert(!err)
   238 |      done()
   239 |    })
   240 |  })
   241 |
   242 |  it('should run not get stuck on failing step', done => {

   at <anonymous> (file:///home/runner/work/CodeceptJS/CodeceptJS/test/runner/bdd_test.js:237:7)

🔴 BDD Gherkin: should run feature files in DE

The expression evaluated to a falsy value: assert(!err)

################[ Failure ]################
AssertionError (==): The expression evaluated to a falsy value:

  assert(!err)



+ expected - actual
+ true
- false

   361 |        stdout.should.include('Ich have discount for price 20, 10')
   362 |        stdout.should.include('On Wenn: ich zur kasse gehe')
   363 |        stdout.should.include('Ich checkout')
   364 |        stdout.should.include('On Dann: sollte ich den gesamtpreis von "10.0" $ sehen')
   365 |        stdout.should.include('Ich see sum 10')
 > 366 |        assert(!err)
   367 |        done()
   368 |      })
   369 |    })
   370 |
   371 |    it('should run feature files in NL', done => {

   at <anonymous> (file:///home/runner/work/CodeceptJS/CodeceptJS/test/runner/bdd_test.js:366:9)

🔴 BDD Gherkin: should run feature files in NL

The expression evaluated to a falsy value: assert(!err)

################[ Failure ]################
AssertionError (==): The expression evaluated to a falsy value:

  assert(!err)



+ expected - actual
+ true
- false

   381 |        stdout.should.include('Ik have discount for price 20, 10')
   382 |        stdout.should.include('On Wanneer: ik naar de kassa ga')
   383 |        stdout.should.include('Ik checkout')
   384 |        stdout.should.include('On Dan: zou ik de totaalprijs van "10.0" $ moeten zien')
   385 |        stdout.should.include('Ik see sum 10')
 > 386 |        assert(!err)
   387 |        done()
   388 |      })
   389 |    })
   390 |  })
   391 |})

   at <anonymous> (file:///home/runner/work/CodeceptJS/CodeceptJS/test/runner/bdd_test.js:386:9)

🔴 CodeceptJS Bootstrap and Teardown: should run bootstrap

The expression evaluated to a falsy value: assert(!err)

################[ Failure ]################
AssertionError (==): The expression evaluated to a falsy value:

  assert(!err)



+ expected - actual
+ true
- false

   27 |      const bootstrapIndex = lines.findIndex(l => l === 'I am bootstrap')
   28 |      const testIndex = lines.findIndex(l => l.indexOf('Filesystem @main') === 0)
   29 |      const teardownIndex = lines.findIndex(l => l === 'I am teardown')
   30 |      assert(testIndex > bootstrapIndex, `${testIndex} (test) > ${bootstrapIndex} (bootstrap)`)
   31 |      assert(teardownIndex > testIndex, `${teardownIndex} (teardown) > ${testIndex} (test)`)
 > 32 |      assert(!err)
   33 |      done()
   34 |    })
   35 |  })
   36 |
   37 |  it('should run async bootstrap', done => {

   at <anonymous> (file:///home/runner/work/CodeceptJS/CodeceptJS/test/runner/bootstrap_test.js:32:7)

🐢 Slowest Tests

  • CodeceptJS within: should execute with async/await. Await is first in order (40.039 seconds)
  • CodeceptJS within: should execute with async/await. Await is second in order (40.039 seconds)
  • CodeceptJS within: should execute if no generators (40.036 seconds)
  • CodeceptJS Timeouts: should prefer step timeout (10.009 seconds)
  • CodeceptJS Timeouts: should keep timeout with steps (10.004 seconds)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants