flow-js-testing icon indicating copy to clipboard operation
flow-js-testing copied to clipboard

Undefined error with newer versions of flow-cli

Open sisyphusSmiling opened this issue 2 years ago • 0 comments

Problem

Using flow-js-testing with newer versions of flow-cli throws undefined error.

cc: @MaxStalker

Steps to Reproduce

Here's where I'm seeing an issue:

Codebase: onflow/flow-ft flow-js-testing version: 0.4.0 flow-cli version: 0.49.0 OS: MacOS 13.2.1

Running the tests on master branch with flow-cli 0.41.2 (as configured in the ci workflow) works just fine, but updating to the latest release of flow-cli (0.49.0) results in broken js tests such as:

  ● CoreFeatures › should be able to setup account

    thrown: undefined

      62 |
      63 |   // Before each test...
    > 64 |   beforeEach(async () => {
         |   ^
      65 |     // We do some scaffolding...
      66 |
      67 |     // Getting the base path of the project

      at beforeEach (core_features.test.js:64:3)
      at Object.describe (core_features.test.js:54:1)

Acceptance Criteria

Compatibility with new flow-cli versions, including updated contract import schema (lmk if you'd like this to be a separate issue).

Context

Update contract import schema which requires new version of flow-cli which is incompatible with flow-js-testing. The linked issue is part of a broader scale effort to update core repos with ecosystem-wide dev tooling and suggested best practices.

sisyphusSmiling avatar Apr 18 '23 20:04 sisyphusSmiling