no test-information printed in prosemirror-view project when run 'npm run test' #3
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
only webtest-decoration.js prints test-information and the other test files log nothing
i've checked the test files, the trouble seems caused by
import {tempEditor} from "./view"for those files with this line log nothing,and i've triednpm run test -- --serveri've tried to copy the code in ./test/view.ts into those file taht import the code and those files loged test-information
I get
248 passing, which seems to be all the tests. Did you check the console for errors when you run these in your browser?thanks for reply,browser seems can't find view (should be view.js, but the file compiled import this file through
import { tempEditor } from "./view";instead ofimport { tempEditor } from "./view.js";)operating system is windows 10
For me, moduleserve rewrites that import to...
... which the browser can handle. So the question is why isn't it doing that for you. Which version of moduleserve does
npm ls -a | grep moduleserveshow?the moduleserve version is 0.2.1
i've tried those commands on another computer and the result is the same that only webtest-decoration.js works
Weird. Even on a fresh clone, with that node version, I'm not getting this issue. Possibly it's a bug in the
resolvepackage that only shows up on Windows. Attached patch adds an extension to those imports, which is good style anyway, and should fix the problem.