You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using latest elm-test runner, the runner crashes with this error:
$ elm-test TestRunner.elm
Success! Compiled 1 module.
Successfully generated /tmp/elm_test_116719-15843-1kmv9mo.edvilcv7vi.js
undefined:1929
throw new Error(
^
Error: You are giving module `Main` an argument in JavaScript.
This module does not take arguments though! You probably need to change the
initialization code to something like `Elm.Main.fullscreen()` at init (eval at <anonymous> (/usr/lib/node_modules/elm-test/bin/elm-test:86:37), <anonymous>:1929:10) at Object.eval [as callback] (eval at <anonymous> (/usr/lib/node_modules/elm-test/bin/elm-test:86:37), <anonymous>:1973:17) at step (eval at <anonymous> (/usr/lib/node_modules/elm-test/bin/elm-test:86:37), <anonymous>:2613:39) at Timeout.work [as _onTimeout] (eval at <anonymous> (/usr/lib/node_modules/elm-test/bin/elm-test:86:37), <anonymous>:2671:15) at tryOnTimeout (timers.js:232:11) at Timer.listOnTimeout (timers.js:202:5)
TestRunner.elm looks like this:
port module Main exposing (..)
importTest.Runner.Node exposing (run)
importTestsimportJson.Encode exposing (Value)
main :ProgramNever
main =
run emit Tests.all
port emit : ( String, Value ) ->Cmd msg
Jep, that was the problem, thanks! Also, for anyone hitting this in the future, make sure to also upgrade rtfeldman/node-test-runner to 2.0.0 in your elm-package.json when you upgrade to the latest elm-test package on npm.
Using latest elm-test runner, the runner crashes with this error:
TestRunner.elm looks like this:
The text was updated successfully, but these errors were encountered: