Fix all the broken CIs :p This includes an ongoing effort to simplify test maintenance by having 1 unique source of truth about metadata and data mocks (that will later be generated from a unique source of seeds: dev = demo = test) Regressions: - Unit line coverage: 60 > 55 - Storybook Pages branch coverage: 40 > 35 We will need to write tests to increase those coverage - RelationFieldDisplay perf: 0.2ms to 0.22ms > We might have a regression here - Removed perf story about RawJSON > We will need to re-add it
9 lines
340 B
TypeScript
9 lines
340 B
TypeScript
import path from 'path';
|
|
|
|
// 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`);
|