This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Timer from "timer"; | |
import LoRa_ST127x, { LoRa_Heltec_Wifi_Lora_32_v2_pins } from "lora_st127x"; | |
import config from "mc/config"; | |
let lora; | |
// test settings | |
const transmit = parseInt(config.transmit ?? "0"); // true to transmit, false to receive | |
const useReadCallback = true; // true to use callbacks on read, false to use polling | |
const usePreallocatedBuffer = true; // set to true to test preallocated buffers, false to test dynamic allocation buffers (when useReadCallback is false) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "jest-test", | |
"version": "1.0.0", | |
"description": "", | |
"main": "index.js", | |
"scripts": { | |
"test": "jest" | |
}, | |
"keywords": [], | |
"author": "", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe("test", () => { | |
beforeAll(async () => { | |
console.log("beforeAll starting"); | |
await new Promise((resolve) => { | |
setTimeout(() => resolve(), 1000); | |
}); | |
console.log("beforeAll complete"); | |
}); | |
afterAll(async () => { | |
console.log("afterAll starting"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "2.0.0", | |
"tasks": [ | |
{ | |
"label": "Build ESP8266 Debug", | |
"type": "shell", | |
"group": { | |
"kind": "build", | |
"isDefault": true | |
}, |
NewerOlder