-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(core): nx v15 prefers output paths that start with {workspaceRoot}
- Loading branch information
1 parent
8ff832a
commit 90b3aab
Showing
15 changed files
with
363 additions
and
243 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,5 @@ | ||
import { getJestProjects } from '@nrwl/jest'; | ||
|
||
export default { | ||
projects: [ | ||
'<rootDir>/e2e/core-e2e', | ||
'<rootDir>/e2e/nx-ghpages-e2e', | ||
'<rootDir>/e2e/nxdoc-e2e', | ||
'<rootDir>/packages/core', | ||
'<rootDir>/packages/dotnet', | ||
'<rootDir>/packages/nx-ghpages', | ||
'<rootDir>/packages/nxdoc', | ||
'<rootDir>/packages/utils', | ||
'<rootDir>/smoke/core', | ||
'<rootDir>/demo/libs/generated/webapi-types', | ||
'<rootDir>/demo/apps/web-frontend', | ||
'<rootDir>/demo/apps/web-frontend', | ||
], | ||
projects: getJestProjects(), | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
const nxPreset = require('@nrwl/jest/preset').default; | ||
|
||
module.exports = { ...nxPreset }; | ||
module.exports = { ...nxPreset, testEnvironment: 'node' }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
packages/core/src/models/build-executor-configuration.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { GetBuildExecutorConfiguration } from './build-executor-configuration'; | ||
|
||
const mockPackageJson = { | ||
version: '14.0.0', | ||
}; | ||
|
||
jest.mock('nx/package.json', () => mockPackageJson); | ||
|
||
describe('build executor configuration', () => { | ||
it('should start with {workspaceRoot} for v15+', () => { | ||
mockPackageJson.version = '15.0.0'; | ||
expect(GetBuildExecutorConfiguration('test')?.outputs?.[0]).toEqual( | ||
'{workspaceRoot}/dist/test', | ||
); | ||
}); | ||
|
||
it('should not start with {workspaceRoot} for v14', () => { | ||
mockPackageJson.version = '14.0.0'; | ||
expect(GetBuildExecutorConfiguration('test')?.outputs?.[0]).toEqual( | ||
'dist/test', | ||
); | ||
}); | ||
}); |
Oops, something went wrong.