mint icon indicating copy to clipboard operation
mint copied to clipboard

Default template fails to run tests

Open sboukortt opened this issue 1 year ago • 1 comments

(The binary is from yesterday.)

$ mint version
Mint 0.18.0-devel
$ mint init example
Mint - Initializing a new project
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚙ Creating directory: example
⚙ Writing initial files:
  ➔ assets
    ➔ favicon.png
    ➔ head.html
    ➔ style.css
  ➔ source
    ➔ Info.mint
    ➔ Link.mint
    ➔ Logo.mint
    ➔ logo.svg
    ➔ Main.mint
  ➔ tests
    ➔ Main.mint
  ➔ mint.json
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
All done in 11.013ms!
$ cd example
$ mint test
Mint - Running Tests
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚙ Ensuring dependencies... 606μs
⚙ Compiling tests...
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

░ TYPE ERROR ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░

I could not find a variable, function or property with the name: with

Here is the relevant code snippet:

┌─┬ tests/Main.mint:3:5 ───────────────────────────────────────────────────────┐
│1│ suite "Main" {                                                             │
│2│   test "Greets Mint" {                                                     │
│3│     with Test.Html {                                                       │
│4│       <Main/>                                                              │
│5│       |> start()                                                           │
│6│       |> assertTextOf("a", "Learn Mint")                                   │
│7│     }                                                                      │
└─┴────────────────────────────────────────────────────────────────────────────┘

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
There was an error, exiting...

Did something change in the way that Test.Html should be imported?

sboukortt avatar Jan 22 '24 20:01 sboukortt