Skip to content

Commit

Permalink
💚 backend: build without --experimental-vm-modules
Browse files Browse the repository at this point in the history
  • Loading branch information
ericlinagora committed Oct 12, 2024
1 parent 386eb47 commit 9c8b86f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
- name: e2e-mongo-s3-test
run: |
cd tdrive
docker compose -f docker-compose.tests.yml run --rm -e NODE_OPTIONS="--unhandled-rejections=warn --experimental-vm-modules" node npm run test:all
docker compose -f docker-compose.tests.yml run --rm -e NODE_OPTIONS=--unhandled-rejections=warn node npm run test:all
docker compose -f docker-compose.tests.yml down
- name: e2e-opensearch-test
run: |
Expand Down
6 changes: 3 additions & 3 deletions tdrive/backend/node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@
"serve:watch": "nodemon dist/server.js | pino-pretty",
"serve:debug": "nodemon --inspect dist/server.js | pino-pretty",
"start": "npm run serve",
"test": "jest --forceExit --coverage --detectOpenHandles --runInBand --verbose false --experimental-vm-modules | pino-pretty",
"test": "jest --forceExit --coverage --detectOpenHandles --runInBand --verbose false | pino-pretty",
"test:local": "jest --forceExit --detectOpenHandles --runInBand mock.spec.ts",
"test:watch": "npm run test -- --watchAll --verbose false | pino-pretty",
"test:unit": "jest test/unit --forceExit --coverage --detectOpenHandles --maxWorkers=1 --testTimeout=30000 --verbose false --experimental-vm-modules > coverage/coverage-report.txt",
"test:unit": "jest test/unit --forceExit --coverage --detectOpenHandles --maxWorkers=1 --testTimeout=30000 --verbose false > coverage/coverage-report.txt",
"test:unit:watch": "npm run test:unit -- --watchAll --verbose false | pino-pretty",
"test:merge:json": "npx istanbul report --dir coverage/merged --include 'coverage/**/coverage-final.json' json-summary",
"test:merge:text": "npx istanbul report --dir coverage/merged --include 'coverage/**/coverage-final.json' text > coverage/merged/coverage-report.txt",
"test:all": "jest test --forceExit --coverage --detectOpenHandles --testTimeout=600000 --verbose false --runInBand --experimental-vm-modules",
"test:all": "jest test --forceExit --coverage --detectOpenHandles --testTimeout=600000 --verbose false --runInBand",
"kill": "kill $(lsof -t -i:3000) | exit 0"
},
"jest": {
Expand Down
18 changes: 9 additions & 9 deletions tdrive/backend/node/test/e2e/utils.prepare.db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { v1 as uuidv1 } from "uuid";
import CompanyUser from "../../src/services/user/entities/company_user";
import { DatabaseServiceAPI } from "../../src/core/platform/services/database/api";
import Repository from "../../src/core/platform/services/database/services/orm/repository/repository";
import Device from "../../src/services/user/entities/device";
import Device, { DeviceTypesEnum } from "../../src/services/user/entities/device";

import gr from "../../src/services/global-resolver";

Expand Down Expand Up @@ -204,14 +204,14 @@ export class TestDbService {

async createDevice(
options: {
id?: string;
password?: string;
user_id?: string;
company_id?: string;
type?: string;
version?: string;
push_notifications?: boolean;
} = {},
id: string;
password: string;
user_id: string;
company_id: string;
type: DeviceTypesEnum;
version: string;
push_notifications: boolean;
},
): Promise<void> {
const user = await gr.services.users.get( {id: options.user_id } );
const device = new Device();
Expand Down

0 comments on commit 9c8b86f

Please sign in to comment.