Skip to content

Commit

Permalink
feat: android monorepo unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
crherman7 committed Sep 23, 2024
1 parent 4ba29f9 commit 1db85d8
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion apps/example/coderc/plugins/plugin-monorepo/__tests__/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,16 @@ describe('plugin', () => {
it('android', async () => {
await plugin.android?.({} as any, {} as any);

expect(true).toBeTruthy();
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');
});
});

0 comments on commit 1db85d8

Please sign in to comment.