mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
(core) Update dependencies
Summary: Changes the minimum version of Node to 18, and updates the Docker images and GitHub workflows to build Grist with Node 18. Also updates various dependencies and scripts to support building running tests with arm64 builds of Node. Test Plan: Existing tests. Reviewers: paulfitz Reviewed By: paulfitz Differential Revision: https://phab.getgrist.com/D3968
This commit is contained in:
@@ -17,8 +17,8 @@ import {
|
||||
import {delayAbort} from 'app/server/lib/serverUtils';
|
||||
import axios, {AxiosRequestConfig, AxiosResponse} from 'axios';
|
||||
import {delay} from 'bluebird';
|
||||
import * as bodyParser from 'body-parser';
|
||||
import {assert} from 'chai';
|
||||
import * as express from 'express';
|
||||
import FormData from 'form-data';
|
||||
import * as fse from 'fs-extra';
|
||||
import * as _ from 'lodash';
|
||||
@@ -3786,7 +3786,7 @@ function testDocApi() {
|
||||
|
||||
// TODO test retries on failure and slowness in a new test
|
||||
serving = await serveSomething(app => {
|
||||
app.use(bodyParser.json());
|
||||
app.use(express.json());
|
||||
app.post('/200', ({body}, res) => {
|
||||
successCalled.emit(body[0].A);
|
||||
res.sendStatus(200);
|
||||
|
||||
@@ -8,12 +8,24 @@ import {assert} from 'chai';
|
||||
import * as sinon from 'sinon';
|
||||
import {TestServer} from 'test/gen-server/apiUtils';
|
||||
import {configForUser} from 'test/gen-server/testUtils';
|
||||
import * as testUtils from 'test/server/testUtils';
|
||||
|
||||
const chimpy = configForUser('Chimpy');
|
||||
const kiwi = configForUser('Kiwi');
|
||||
const anon = configForUser('Anonymous');
|
||||
|
||||
describe('Telemetry', function() {
|
||||
let oldEnv: testUtils.EnvironmentSnapshot;
|
||||
|
||||
before(async function() {
|
||||
oldEnv = new testUtils.EnvironmentSnapshot();
|
||||
process.env.TYPEORM_DATABASE = ':memory:';
|
||||
});
|
||||
|
||||
after(function() {
|
||||
oldEnv.restore();
|
||||
});
|
||||
|
||||
const variants: [GristDeploymentType, TelemetryLevel, PrefSource][] = [
|
||||
['saas', 'off', 'environment-variable'],
|
||||
['saas', 'limited', 'environment-variable'],
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import {UserAPIImpl} from 'app/common/UserAPI';
|
||||
import {WebhookSubscription} from 'app/server/lib/DocApi';
|
||||
import axios from 'axios';
|
||||
import * as bodyParser from 'body-parser';
|
||||
import {assert} from 'chai';
|
||||
import * as express from 'express';
|
||||
import {tmpdir} from 'os';
|
||||
import * as path from 'path';
|
||||
import {createClient} from 'redis';
|
||||
@@ -218,7 +218,7 @@ describe('Webhooks-Proxy', function () {
|
||||
this.timeout(30000);
|
||||
serving = await serveSomething(app => {
|
||||
|
||||
app.use(bodyParser.json());
|
||||
app.use(express.json());
|
||||
app.post('/200', ({body}, res) => {
|
||||
successCalled.emit(body[0].A);
|
||||
res.sendStatus(200);
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import {serveSomething, Serving} from "test/server/customUtil";
|
||||
import * as bodyParser from "body-parser";
|
||||
import {Request, Response} from "express-serve-static-core";
|
||||
import * as express from "express";
|
||||
import axios from "axios";
|
||||
|
||||
export class TestProxyServer {
|
||||
@@ -27,8 +26,8 @@ export class TestProxyServer {
|
||||
|
||||
private async _prepare(portNumber: number) {
|
||||
this._proxyServing = await serveSomething(app => {
|
||||
app.use(bodyParser.json());
|
||||
app.all('*', async (req: Request, res: Response) => {
|
||||
app.use(express.json());
|
||||
app.all('*', async (req: express.Request, res: express.Response) => {
|
||||
this._proxyCallsCounter += 1;
|
||||
let responseCode;
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user