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 581f316 commit 7d4effd
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,5 @@ export const Performance = getProfilingStory({
componentName: 'DateTimeFieldDisplay',
averageThresholdInMs: 0.1,
numberOfRuns: 30,
numberOfTestsPerRun: 50,
numberOfTestsPerRun: 30,
});
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@ export const Performance = getProfilingStory({
componentName: 'RatingFieldDisplay',
averageThresholdInMs: 0.5,
numberOfRuns: 30,
numberOfTestsPerRun: 50,
numberOfTestsPerRun: 30,
});
2 changes: 1 addition & 1 deletion packages/twenty-server/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"options": {
"cwd": "packages/twenty-server",
"commands": [
"nx database:reset > reset-logs.log && NODE_ENV=test nx jest --config ./jest-integration.config.ts"
"NODE_ENV=test nx database:reset > reset-logs.log && NODE_ENV=test nx jest --config ./jest-integration.config.ts"
]
},
"parallel": false
Expand Down
9 changes: 5 additions & 4 deletions packages/twenty-server/src/constants/assets-path.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import path from 'path';

export const ASSET_PATH =
process.env.NODE_ENV === 'test'
? path.resolve(__dirname, `../../dist/assets`)
: path.resolve(__dirname, `../../assets`);
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`);

0 comments on commit 7d4effd

Please sign in to comment.