Merge branch 'node-16' into 'next'

Upgrade to Node.js 16.x

See merge request soapbox-pub/soapbox-fe!1205
next-virtuoso-proof
Alex Gleason 2022-04-12 17:30:20 +00:00
commit b2a67820ab
4 zmienionych plików z 5 dodań i 4 usunięć

Wyświetl plik

@ -1,4 +1,4 @@
image: node:14
image: node:16
variables:
NODE_ENV: test

Wyświetl plik

@ -1 +1 @@
nodejs 14.17.6
nodejs 16.14.2

Wyświetl plik

@ -9,7 +9,7 @@ export const __stub = (func: Function) => mocks.push(func);
export const __clear = (): Function[] => mocks = [];
const setupMock = (axios: AxiosInstance) => {
const mock = new MockAdapter(axios);
const mock = new MockAdapter(axios, { onNoMatch: 'throwException' });
mocks.map(func => func(mock));
};

Wyświetl plik

@ -2,7 +2,8 @@ import { Map as ImmutableMap } from 'immutable';
import React from 'react';
import { Route, Switch } from 'react-router-dom';
import { __stub } from '../../../__mocks__/api';
import { __stub } from 'soapbox/api';
import { render, screen } from '../../../jest/test-helpers';
import Verification from '../index';