Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(angular): fix path issues on windows for storybook generators and…
… unit tests (#27489) ## Current Behavior `nx test angular` fail on windows ## Expected Behavior `nx test angular` to pass on windows ## notes in `packages/angular/src/generators/utils/storybook-ast/component-info.ts` file I used `join(moduleFolderPath)` to convert it from always being `/` to be OS separator there are two other options I can do, but I don't have enough knowledge to take the decision 1. to generate `moduleFolderPath` with OS separator instead of always `/` 2. to make `candidateFile` to always be `/` ## Related Issue(s) it might Fixes #22248 because now I see that when a new file is added, it's added to the end of the tree, but when you reset it's then added to its place also it explain why same code sometimes hit cache in windows, but miss cache on linux, as the returned result different between the OSs this should make sure that the returned result is always the same --------- Co-authored-by: Leosvel Pérez Espinosa <leosvel.perez.espinosa@gmail.com>
- Loading branch information