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
I don't know how much compatible are the mocks with NodeCG 2.x, I tried a simple .spy() on nodecg.log.info() and it worked fine but I guess for more complicated mocks this library will not work, so if the project is still alive I suggest updating it.
EDIT: A non working example will be using nodecg.Router() because that is not present on the mock.
FAIL tests/extension/index.test.js > index suite > should execute
TypeError: nodecg.Router is not a function
❯ Module.setOAuthRoute src/extension/webserver.js:22:25
20| */
21| export function setOAuthRoute(nodecg) {
22| const router = nodecg.Router();
| ^
23|
24| /**
❯ Module.__vite_ssr_exports__.default src/extension/index.js:32:3
❯ tests/extension/index.test.js:18:10
The text was updated successfully, but these errors were encountered:
Description
I don't know how much compatible are the mocks with NodeCG 2.x, I tried a simple .spy() on nodecg.log.info() and it worked fine but I guess for more complicated mocks this library will not work, so if the project is still alive I suggest updating it.
EDIT: A non working example will be using
nodecg.Router()
because that is not present on the mock.The text was updated successfully, but these errors were encountered: