Skip to content

Commit 012f4b5

Browse files
authored
Merge pull request #393 from formidablejs/release/0.28.5
Release/0.28.5
2 parents 805e46e + 6665156 commit 012f4b5

File tree

19 files changed

+72
-4
lines changed

19 files changed

+72
-4
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
//Mock for @paralleldrive/cuid2
2+
3+
module.exports = {
4+
createId: jest.fn(() => 'mock-id'),
5+
init: jest.fn(),
6+
getConstants: jest.fn(() => ({})),
7+
isCuid: jest.fn(() => true)
8+
};

formidable/auth/imba/test/app.e2e.test.imba

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
jest.mock '@paralleldrive/cuid2'
2+
13
const formidable = require('../.formidable/build').default
24
const supertest = require('supertest')
35

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
//Mock for @paralleldrive/cuid2
2+
3+
module.exports = {
4+
createId: jest.fn(() => 'mock-id'),
5+
init: jest.fn(),
6+
getConstants: jest.fn(() => ({})),
7+
isCuid: jest.fn(() => true)
8+
};

formidable/auth/ts/test/app.e2e.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
jest.mock('@paralleldrive/cuid2')
2+
13
const formidable = require('../.formidable/build').default
24
const supertest = require('supertest')
35

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
//Mock for @paralleldrive/cuid2
2+
3+
module.exports = {
4+
createId: jest.fn(() => 'mock-id'),
5+
init: jest.fn(),
6+
getConstants: jest.fn(() => ({})),
7+
isCuid: jest.fn(() => true)
8+
};

formidable/web/test/imba/app.e2e.test.imba

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
jest.mock '@paralleldrive/cuid2'
2+
13
const formidable = require('../.formidable/build').default
24
const supertest = require('supertest')
35

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
//Mock for @paralleldrive/cuid2
2+
3+
module.exports = {
4+
createId: jest.fn(() => 'mock-id'),
5+
init: jest.fn(),
6+
getConstants: jest.fn(() => ({})),
7+
isCuid: jest.fn(() => true)
8+
};

formidable/web/test/ts/app.e2e.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
jest.mock('@paralleldrive/cuid2')
2+
13
const formidable = require('../.formidable/build').default
24
const supertest = require('supertest')
35

@@ -17,7 +19,7 @@ describe('Application (e2e)', () => {
1719
})
1820

1921
it('/ (GET: Welcome)', async () => {
20-
supertest(app.server)
22+
await supertest(app.server)
2123
.get('/')
2224
.expect(200)
2325
.expect((res) => {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@formidablejs/framework",
3-
"version": "0.28.4",
3+
"version": "0.28.5",
44
"description": "Formidable Framework Core",
55
"author": "Donald Pakkies",
66
"license": "MIT",
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
//Mock for @paralleldrive/cuid2
2+
3+
module.exports = {
4+
createId: jest.fn(() => 'mock-id'),
5+
init: jest.fn(),
6+
getConstants: jest.fn(() => ({})),
7+
isCuid: jest.fn(() => true)
8+
};

0 commit comments

Comments
 (0)