mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-23 05:07:52 +00:00
fix tests?
This commit is contained in:
2
jest.setup.js
Normal file
2
jest.setup.js
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
global.TextEncoder = require('util').TextEncoder;
|
||||||
|
global.TextDecoder = require('util').TextDecoder;
|
||||||
@@ -82,7 +82,8 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"setupFilesAfterEnv": [
|
"setupFilesAfterEnv": [
|
||||||
"jest-expect-message"
|
"jest-expect-message",
|
||||||
|
"<rootDir>/jest.setup.js"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
/** @jest-environment node */
|
||||||
/*eslint max-lines: ["warn", {"max": 1000, "skipBlankLines": true, "skipComments": true}]*/
|
/*eslint max-lines: ["warn", {"max": 1000, "skipBlankLines": true, "skipComments": true}]*/
|
||||||
import supertest from 'supertest';
|
import supertest from 'supertest';
|
||||||
import HBApp from './app.js';
|
import HBApp from './app.js';
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
/** @jest-environment node */
|
||||||
import forceSSL from './forcessl.mw';
|
import forceSSL from './forcessl.mw';
|
||||||
|
|
||||||
describe('Tests for ForceSSL middleware', ()=>{
|
describe('Tests for ForceSSL middleware', ()=>{
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
/** @jest-environment node */
|
||||||
/* eslint-disable max-lines */
|
/* eslint-disable max-lines */
|
||||||
|
|
||||||
import { splitTextStyleAndMetadata } from '../shared/helpers.js';
|
import { splitTextStyleAndMetadata } from '../shared/helpers.js';
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
/** @jest-environment node */
|
||||||
import { expect, jest } from '@jest/globals';
|
import { expect, jest } from '@jest/globals';
|
||||||
import config from './config.js';
|
import config from './config.js';
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user