Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesBochet committed Oct 4, 2024
1 parent fc3e784 commit 77272ff
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 68 deletions.
5 changes: 1 addition & 4 deletions packages/twenty-server/jest-integration.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,7 @@ const jestConfig: JestConfigWithTsJest = {
rootDir: '.',
testEnvironment: 'node',
testRegex: '.integration-spec.ts$',
modulePathIgnorePatterns: [
'<rootDir>/dist',
'<rootDir>/../twenty-emails/dist',
],
modulePathIgnorePatterns: ['<rootDir>/dist'],
globalSetup: '<rootDir>/test/utils/setup-test.ts',
globalTeardown: '<rootDir>/test/utils/teardown-test.ts',
testTimeout: 15000,
Expand Down
5 changes: 4 additions & 1 deletion packages/twenty-server/src/constants/assets-path.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import path from 'path';

export const ASSET_PATH = path.resolve(__dirname, `../../assets`);
export const ASSET_PATH =
process.env.NODE_ENV === 'test'
? path.resolve(__dirname, `../../dist/assets`)
: path.resolve(__dirname, `../../assets`);
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import path, { join } from 'path';
import fs from 'fs/promises';
import path, { join } from 'path';

import { ASSET_PATH } from 'src/constants/assets-path';

Expand Down

This file was deleted.

2 changes: 1 addition & 1 deletion packages/twenty-server/test/utils/setup-test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import 'tsconfig-paths/register';
import { JestConfigWithTsJest } from 'ts-jest';
import 'tsconfig-paths/register';

import { createApp } from './create-app';

Expand Down

0 comments on commit 77272ff

Please sign in to comment.