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 7d4effd commit 3e5ff35
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const Default: Story = {};

export const Performance = getProfilingStory({
componentName: 'RelationFieldDisplay',
averageThresholdInMs: 0.2,
averageThresholdInMs: 0.22,
numberOfRuns: 20,
numberOfTestsPerRun: 100,
});
11 changes: 6 additions & 5 deletions packages/twenty-server/src/constants/assets-path.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import path from 'path';

console.log('__dirname', __dirname);
console.log('__dirname.endsWith', __dirname.endsWith('dist'));
export const ASSET_PATH = __dirname.endsWith('dist')
? path.resolve(__dirname, `../../assets`)
: path.resolve(__dirname, `../../dist/assets`);
// If the code is built through the testing module, assets are not output to the dist/assets directory.
const IS_BUILT_THROUGH_TESTING_MODULE = !__dirname.includes('/dist/');

export const ASSET_PATH = IS_BUILT_THROUGH_TESTING_MODULE
? path.resolve(__dirname, `../`)
: path.resolve(__dirname, `../../assets`);

0 comments on commit 3e5ff35

Please sign in to comment.