Skip to content

Commit 3e18da7

Browse files
author
uid10804
committed
refactor(server): update cypress tests
1 parent 7394605 commit 3e18da7

File tree

5 files changed

+16
-7
lines changed

5 files changed

+16
-7
lines changed

packages/server/cypress.config.ts

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import { defineConfig } from 'cypress';
2+
3+
export default defineConfig({
4+
e2e: {
5+
// We've imported your old cypress plugins here.
6+
// You may want to clean this up later by importing these.
7+
setupNodeEvents(on, config) {
8+
return require('./cypress/plugins/index.js')(on, config);
9+
},
10+
taskTimeout: 60000,
11+
requestTimeout: 60000,
12+
execTimeout: 60000,
13+
},
14+
});

packages/server/cypress.json

-1
This file was deleted.

packages/server/package.json

+2-6
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"url": "git+https://github.com/pharindoko/json-serverless.git"
1010
},
1111
"scripts": {
12-
"test": "npx jest",
12+
"test": "npx jest --runInBand",
1313
"debug": "tsc-watch --onSuccess \"node --inspect-brk ./lib/example/simple.s3.js\"",
1414
"start": "tsc-watch --onSuccess \"node ./lib/example/simple.s3.js\"",
1515
"start:dynamodb": "tsc-watch --onSuccess \"node ./lib/example/simple.dynamodb.js\"",
@@ -20,11 +20,8 @@
2020
"build": "tsc -b",
2121
"prepare": "npm run compile",
2222
"pretest": "npm run compile",
23-
"posttest": "npm run check",
24-
"check": "gts check",
25-
"clean": "gts clean",
2623
"compile": "tsc -p .",
27-
"fix": "gts fix"
24+
"cypress:open": "cypress open"
2825
},
2926
"author": "",
3027
"license": "MIT",
@@ -74,7 +71,6 @@
7471
"eslint": "8.47.0",
7572
"eslint-config-airbnb-base": "15.0.0",
7673
"eslint-plugin-import": "2.28.0",
77-
"gts": "5.0.0",
7874
"jest": "29.6.2",
7975
"source-map-support": "0.5.21",
8076
"supertest": "6.3.3",

0 commit comments

Comments
 (0)