Skip to content

chore: Move all of the unit tests that require a file to be served to a different workflow. #8377

@nadr0

Description

@nadr0

We have unit tests that are not unit tests, for example

src/machines/modelingMachine.test.ts is not a unit test. You need a server up and running to run this unit test. We need a different test runner to run these types of tests. They are making our unit testing run time more difficult to use.

The following will not work

npx vitest run --mode development ./src/machines/modelingMachine.test.ts 

The following will work

npm run simpleserver:bg
# in another terminal
npx vitest run --mode development ./src/machines/modelingMachine.test.ts 

Our unit tests require a localhost server.

TODO: running list

  • src/machines/modelingMachine.test.ts
  • src/lang/modifyAst/addEdgeTreatment.test.ts

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions