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
$ cd bindings/web/
$ yarn test
yarn run v1.22.5
$ jest
PASS dist/Shape.test.js
Finished dev [unoptimized + debuginfo] target(s) in 0.36s
Running `target/debug/rune build /home/michael/Documents/hotg-ai/rune/examples/noop/Runefile.yml --quiet`
node:internal/process/promises:246
triggerUncaughtException(err, true /* fromPromise */);
^
[UnhandledPromiseRejection: This error originated either by throwing inside of an async functionwithout a catch block, or by rejecting a promise which was not handled with .catch().
The promise rejected with the reason "ReferenceError: self is not defined".] {
code: 'ERR_UNHANDLED_REJECTION'
}
Note the "ReferenceError: self is not defined" bit.
We currently can't use the web bindings out of the browser because the
tfjs-tflite
package uses browser-specific APIs (e.g.self
andBlob
).It'd be really nice if we could run unit tests for our web bindings in CI without needing to start up a browser.
The text was updated successfully, but these errors were encountered: