chore(ci): upgrade node version to 22

This commit is contained in:
David Testé
2024-07-09 13:02:06 +02:00
committed by David Testé
parent 29cf2b83b8
commit 7692643ca4
4 changed files with 14 additions and 3 deletions

View File

@@ -17,7 +17,7 @@ PARSE_INTEGER_BENCH_CSV_FILE?=tfhe_rs_integer_benches.csv
FAST_TESTS?=FALSE
FAST_BENCH?=FALSE
BENCH_OP_FLAVOR?=DEFAULT
NODE_VERSION=20
NODE_VERSION=22
FORWARD_COMPAT?=OFF
BACKWARD_COMPAT_DATA_URL=https://github.com/zama-ai/tfhe-backward-compat-data.git
BACKWARD_COMPAT_DATA_DIR=tfhe-backward-compat-data
@@ -810,7 +810,7 @@ test_nodejs_wasm_api_in_docker: build_nodejs_test_docker
.PHONY: test_nodejs_wasm_api # Run tests for the nodejs on wasm API
test_nodejs_wasm_api: build_node_js_api
cd tfhe && node --test js_on_wasm_tests
cd tfhe/js_on_wasm_tests && npm run test
.PHONY: test_web_js_api_parallel # Run tests for the web wasm api
test_web_js_api_parallel: build_web_js_api_parallel

View File

View File

@@ -0,0 +1,11 @@
{
"name": "js_on_wasm_tests",
"version": "1.0.0",
"description": "JS API tests",
"main": "index.js",
"scripts": {
"test": "node --test --test-reporter=tap"
},
"author": "",
"license": "ISC"
}

View File

@@ -1,6 +1,6 @@
const test = require('node:test');
const assert = require('node:assert').strict;
const {performance} = require('perf_hooks');
const { performance } = require('perf_hooks');
const {
init_panic_hook,
TfheClientKey,