-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
npm test #19
Comments
Hello @alejoduque and thanks for your interest! I'll be honest, these two test conditions error out because of an incomplete test case. I've been focusing on completing the refactor (of If you followed the steps from the readme (having one terminal running P.S.: I've enabled discussions for the repository, so if you have questions related to the usage of the app, I suggest you go there and create a discussion in the Q/A category :) |
Oke, I understand what you say about the in-depth tests. I came to try that since I was only able to get to the Kodtrol window to open (after being launched from a second terminal) but no content shows inside the window. Hences is not yet a user related discussion but an issue with some particular library here (and yes, i had cloned from the big refractor branch). Basically cause it fails running dev here: `~/.../Kodtrol-bigrefractor/Kodtrol >>> npm run dev ±[develop]
10% building 2/2 modules 0 activeℹ 「wds」: Project is running at http://localhost:8080/ ERROR in ./src/ui/styles/main.scss (./node_modules/css-loader/dist/cjs.js??ref--6-1!./node_modules/sass-loader/dist/cjs.js!./src/ui/styles/main.scss) ERROR in ./src/ui/styles/components/partials/scripteditor.scss (./node_modules/css-loader/dist/cjs.js??ref--6-1!./node_modules/sass-loader/dist/cjs.js!./src/ui/styles/components/partials/scripteditor.scss) ERROR in ./src/ui/styles/components/partials/scriptsbrowser.scss (./node_modules/css-loader/dist/cjs.js??ref--6-1!./node_modules/sass-loader/dist/cjs.js!./src/ui/styles/components/partials/scriptsbrowser.scss) ERROR in ./src/ui/styles/components/partials/devicesbrowser.scss (./node_modules/css-loader/dist/cjs.js??ref--6-1!./node_modules/sass-loader/dist/cjs.js!./src/ui/styles/components/partials/devicesbrowser.scss) ERROR in ./src/ui/styles/components/partials/timelinesbrowser.scss (./node_modules/css-loader/dist/cjs.js??ref--6-1!./node_modules/sass-loader/dist/cjs.js!./src/ui/styles/components/partials/timelinesbrowser.scss) ERROR in ./src/ui/styles/components/timeline/timelineeditor.scss (./node_modules/css-loader/dist/cjs.js??ref--6-1!./node_modules/sass-loader/dist/cjs.js!./src/ui/styles/components/timeline/timelineeditor.scss) ERROR in ./src/ui/styles/components/board/boardeditor.scss (./node_modules/css-loader/dist/cjs.js??ref--6-1!./node_modules/sass-loader/dist/cjs.js!./src/ui/styles/components/board/boardeditor.scss) ERROR in ./src/ui/styles/components/partials/mainnav.scss (./node_modules/css-loader/dist/cjs.js??ref--6-1!./node_modules/sass-loader/dist/cjs.js!./src/ui/styles/components/partials/mainnav.scss) ERROR in ./src/ui/styles/components/partials/mediasbrowser.scss (./node_modules/css-loader/dist/cjs.js??ref--6-1!./node_modules/sass-loader/dist/cjs.js!./src/ui/styles/components/partials/mediasbrowser.scss) ERROR in ./src/ui/styles/components/partials/panel.scss (./node_modules/css-loader/dist/cjs.js??ref--6-1!./node_modules/sass-loader/dist/cjs.js!./src/ui/styles/components/partials/panel.scss) ERROR in ./src/ui/styles/components/partials/treeview.scss (./node_modules/css-loader/dist/cjs.js??ref--6-1!./node_modules/sass-loader/dist/cjs.js!./src/ui/styles/components/partials/treeview.scss) ERROR in ./src/ui/styles/components/timeline/timelinewrapper.scss (./node_modules/css-loader/dist/cjs.js??ref--6-1!./node_modules/sass-loader/dist/cjs.js!./src/ui/styles/components/timeline/timelinewrapper.scss) ERROR in ./src/ui/styles/components/timeline/timelineaudiotrack.scss (./node_modules/css-loader/dist/cjs.js??ref--6-1!./node_modules/sass-loader/dist/cjs.js!./src/ui/styles/components/timeline/timelineaudiotrack.scss) ERROR in ./src/ui/styles/components/timeline/timelinecurve.scss (./node_modules/css-loader/dist/cjs.js??ref--6-1!./node_modules/sass-loader/dist/cjs.js!./src/ui/styles/components/timeline/timelinecurve.scss) ERROR in ./src/ui/styles/components/modals/configmodal.scss (./node_modules/css-loader/dist/cjs.js??ref--6-1!./node_modules/sass-loader/dist/cjs.js!./src/ui/styles/components/modals/configmodal.scss) ERROR in ./src/ui/styles/components/board/boardwrapper.scss (./node_modules/css-loader/dist/cjs.js??ref--6-1!./node_modules/sass-loader/dist/cjs.js!./src/ui/styles/components/board/boardwrapper.scss) ERROR in ./src/ui/styles/components/timeline/timelineitem.scss (./node_modules/css-loader/dist/cjs.js??ref--6-1!./node_modules/sass-loader/dist/cjs.js!./src/ui/styles/components/timeline/timelineitem.scss) ERROR in ./src/ui/styles/components/board/boarditem.scss (./node_modules/css-loader/dist/cjs.js??ref--6-1!./node_modules/sass-loader/dist/cjs.js!./src/ui/styles/components/board/boarditem.scss) ERROR in ./src/ui/styles/components/layer_editor/layereditor.scss (./node_modules/css-loader/dist/cjs.js??ref--6-1!./node_modules/sass-loader/dist/cjs.js!./src/ui/styles/components/layer_editor/layereditor.scss) ERROR in ./src/ui/styles/components/forms/fields/filefield.scss (./node_modules/css-loader/dist/cjs.js??ref--6-1!./node_modules/sass-loader/dist/cjs.js!./src/ui/styles/components/forms/fields/filefield.scss) ERROR in ./src/ui/styles/components/forms/fields/colorfield.scss (./node_modules/css-loader/dist/cjs.js??ref--6-1!./node_modules/sass-loader/dist/cjs.js!./src/ui/styles/components/forms/fields/colorfield.scss) ERROR in ./src/ui/styles/components/layer_editor/layer.scss (./node_modules/css-loader/dist/cjs.js??ref--6-1!./node_modules/sass-loader/dist/cjs.js!./src/ui/styles/components/layer_editor/layer.scss) ERROR in ./src/ui/styles/root.scss (./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/ui/styles/root.scss) |
Are you sure you cloned/checked out the You might also want to try running |
Yes im completely sure I have checkout the correct branch and this morning even did it on a new directory.. i have also done the run rebuild before the run dev. Will try to update node and ping back |
No joy yet: `/.../Kodtrol-bigrefractor/Kodtrol >>> npm run dev ±[develop]
10% building 2/2 modules 0 activeℹ 「wds」: Project is running at http://localhost:8080/ ERROR in ./src/ui/styles/main.scss (./node_modules/css-loader/dist/cjs.js??ref--6-1!./node_modules/sass-loader/dist/cjs.js!./src/ui/styles/main.scss) I have this: |
Can you confirm that if you cloned using git that the command I see that you are still running somehow on the
|
You are right, I had tried both.. so far still I get errors. ~/.../Kodtrol-bigrefractor/Kodtrol >>> git pull ±[the-big-refactor] git config pull.rebase false # merge (the default strategy) You can replace "git config" with "git config --global" to set a default Already up to date. `/.../Kodtrol-bigrefractor/Kodtrol >>> npm run dev ±[the-big-refactor]
` |
And yes, I had ran npm install before the run dev |
This is where im now: `~/.../Kodtrol-bigrefractor/Kodtrol >>> npm install ±[●][the-big-refactor]
patch-package 6.2.2 audited 2085 packages in 7.488s 45 packages are looking for funding found 2 vulnerabilities (1 low, 1 high)
🚨 Cannot read property 'length' of undefined on a second terminal i can see a window opening but no contents inside and this on the log: `~/.../Kodtrol-bigrefractor/Kodtrol >>> npm run start ±[the-big-refactor]
15:18:37.439 › Attempted to load extension "React Developer Tools" that has already been loaded. ` I hope this us useful |
Can you try deleting the Edit: I tested in a Ubuntu Trusty VM with Node.js 14.15.1 & npm 6.14.8, and I've got the same "Cannot read property 'length' of undefined" issue. I believe it may have already happened to me on some other project; I'll try to look for a solution. Edit 2: I think I fixed it, there was a missing dev dependency in the |
Thanks! Now I;ve managed to open the scripting interface and will have to hook my gear to try to learn my way trough it. /Documents/Kodtrol >>> npm run dev ±[the-big-refactor]
|
Hello, I wanted to beta test you software under linux manjaro and got close but, i think i need advice on how to get over it´s first initialization.
I´m using Node v6.14.8
(had some issues resolved with 2 commands in this thread laravel-mix/laravel-mix#2383 )
`~/Documents/Kodtrol >>> npm run test ±[●][the-big-refactor]
Helper - clamp
✓ should pass value within range
✓ should clamp values outside of range
Helper - counter
✓ should init properly with default ID and return 0
✓ should increment properly with default ID
✓ should reset with default ID to 0
✓ should init properly with custom ID and return 0
✓ should increment properly with custom ID
✓ should reset with custom ID to 0
✓ should reset all
Helper - isEven
✓ should return true for even numbers
✓ should return false for odd numbers
Helper - isOdd
✓ should return true for odd numbers
✓ should return false for even numbers
Helper - sequence
✓ should return for null or empty array
✓ should init properly with default ID and return first item
✓ should advance properly and rollover with default ID
✓ should reset with default ID if the array is shorter than the current index
✓ should reset properly with default ID
✓ should init properly with custom ID and return first item
✓ should advance properly and rollover with custom ID
✓ should reset with custom ID if the array is shorter than the current index
✓ should reset properly with custom ID
DmxDevice
✓ should construct without using with initial data
✓ should have proper getter values
✓ should have proper method results
✓ should update without errors
✓ should have proper getter values after update
✓ should have proper method results after update
✓ should set the proper numerical channel
✓ should set the proper aliased channel
✓ should get the proper numerical channel default
✓ should get the proper aliased channel default
✓ should destroy without errors
IldaDevice
✓ should construct without errors using initial data
✓ should have proper getter values
✓ should have proper method results
✓ should update without errors
✓ should have proper getter values after update
✓ should have proper method results after update
✓ should destroy without errors
MidiDevice
✓ should construct without errors using initial data
✓ should have proper getter values
✓ should have proper method results
✓ should update without errors
✓ should have proper getter values after update
✓ should have proper method results after update
✓ should destroy without errors
RootTimelineRenderer
1) should construct without errors using initial data
2) should destroy without errors
47 passing (69ms)
2 failing
RootTimelineRenderer
should construct without errors using initial data:
TypeError: this._timeline.on is not a function
at RootTimelineRenderer._setTimelineAndItems (src/renderer/rendering/renderers/root/RootTimelineRenderer.js:29:20)
at new RootTimelineRenderer (src/renderer/rendering/renderers/root/RootTimelineRenderer.js:24:10)
at Context. (test/renderer/renderers/RootTimelineRenderer.test.js:21:16)
at processImmediate (internal/timers.js:461:21)
RootTimelineRenderer
should destroy without errors:
TypeError: Cannot read property 'destroy' of undefined
at Context. (test/renderer/renderers/RootTimelineRenderer.test.js:25:14)
at processImmediate (internal/timers.js:461:21)
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! [email protected] test:
mocha --recursive -r @babel/register
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the [email protected] test script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/a/.npm/_logs/2020-12-08T23_25_14_790Z-debug.log
`
Any advice welcomed and btw, thanks for putting out your software
The text was updated successfully, but these errors were encountered: