mirror of
https://github.com/dvmarinoff/Auuki.git
synced 2026-12-02 10:09:19 +01:00
* add connection and basic parsing for open bike control * add virtual shifting ui, state and tests * update node/npm setup * add basic support for training controls
12 lines
389 B
JavaScript
12 lines
389 B
JavaScript
// Jest's pretend browser window does not include Node's text encoder.
|
|
// The jsdom package asks for it the moment a test imports it.
|
|
const { TextDecoder, TextEncoder } = require('node:util');
|
|
|
|
if (typeof globalThis.TextEncoder === 'undefined') {
|
|
globalThis.TextEncoder = TextEncoder;
|
|
}
|
|
|
|
if (typeof globalThis.TextDecoder === 'undefined') {
|
|
globalThis.TextDecoder = TextDecoder;
|
|
}
|