-
Notifications
You must be signed in to change notification settings - Fork 141
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2757 from crherman7/feat/ENG-5727
feat(router): ENG-5727 router impl
- Loading branch information
Showing
50 changed files
with
2,600 additions
and
1,235 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
apps/example/coderc/plugins/plugin-example/__tests__/index.ts
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
36 changes: 36 additions & 0 deletions
36
apps/example/coderc/plugins/plugin-monorepo/__tests__/index.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,36 @@ | ||
/** | ||
* @jest-environment-options {"requireTemplate": true} | ||
*/ | ||
|
||
/// <reference types="@brandingbrand/code-jest-config" /> | ||
|
||
import {fs, path} from '@brandingbrand/code-cli-kit'; | ||
import plugin from '../src'; | ||
|
||
describe('plugin', () => { | ||
it('ios', async () => { | ||
await plugin.ios?.({} as any, {} as any); | ||
|
||
const pbxProj = await fs.readFile(path.ios.projectPbxProj, 'utf-8'); | ||
|
||
expect(pbxProj).toContain( | ||
'${REACT_NATIVE_PATH}/scripts/xcode/with-environment.sh', | ||
); | ||
}); | ||
|
||
it('android', async () => { | ||
await plugin.android?.({} as any, {} as any); | ||
|
||
const appBuildGradle = await fs.readFile( | ||
path.android.appBuildGradle, | ||
'utf-8', | ||
); | ||
const settingsGradle = await fs.readFile( | ||
path.project.resolve('android', 'settings.gradle'), | ||
'utf-8', | ||
); | ||
|
||
expect(appBuildGradle).toContain('../../../node_modules'); | ||
expect(settingsGradle).toContain('../../../node_modules'); | ||
}); | ||
}); |
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
Oops, something went wrong.