Revert node change

This commit is contained in:
JubaAzul 2025-01-13 18:47:28 -05:00
parent 12b376d606
commit f201305064
3 changed files with 2 additions and 4 deletions

View file

@ -2,13 +2,11 @@ import { render } from '@testing-library/react';
import { MultipleChoice } from '../../../../components/GiftTemplate/templates'; import { MultipleChoice } from '../../../../components/GiftTemplate/templates';
import { TemplateOptions, MultipleChoice as MultipleChoiceType } from '../../../../components/GiftTemplate/templates/types'; import { TemplateOptions, MultipleChoice as MultipleChoiceType } from '../../../../components/GiftTemplate/templates/types';
// Mock the nanoid function // Mock the nanoid function
jest.mock('nanoid', () => ({ jest.mock('nanoid', () => ({
nanoid: jest.fn(() => 'mocked-id') nanoid: jest.fn(() => 'mocked-id')
})); }));
const mockProps: TemplateOptions & MultipleChoiceType = { const mockProps: TemplateOptions & MultipleChoiceType = {
type: 'MC', type: 'MC',
hasEmbeddedAnswers: false, hasEmbeddedAnswers: false,

View file

@ -28,7 +28,7 @@
"supertest": "^6.3.4" "supertest": "^6.3.4"
}, },
"engines": { "engines": {
"node": "20.x" "node": "18.x"
} }
}, },
"node_modules/@ampproject/remapping": { "node_modules/@ampproject/remapping": {

View file

@ -32,7 +32,7 @@
"supertest": "^6.3.4" "supertest": "^6.3.4"
}, },
"engines": { "engines": {
"node": "20.x" "node": "18.x"
}, },
"jest": { "jest": {
"testEnvironment": "node", "testEnvironment": "node",