Skip to content

Commit

Permalink
Update error message wording
Browse files Browse the repository at this point in the history
Co-authored-by: Ben Wilson <[email protected]>
  • Loading branch information
yousif-bugsnag and gingerbenw committed Jan 13, 2025
1 parent 94b1bbe commit 43984cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/expo-cli/lib/insert.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ module.exports = async (projectRoot) => {
} else if (checkFileExists('App.js')) {
return await writeBugsnagImport('App.js')
} else {
throw new Error(`Couldn’t find App.js or App.ts/tsx in "${projectRoot}". Is this the root of your Expo project?`)
throw new Error(`Couldn’t find App.js or App.ts(x) in "${projectRoot}". Is this the root of your Expo project?`)
}
}

Expand Down
2 changes: 1 addition & 1 deletion packages/expo-cli/lib/test/insert.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ describe('expo-cli: insert', () => {

it('should provide a reasonable error when there is no App.js or App.ts/tsx', async () => {
await withFixture('empty-00', async (projectRoot) => {
await expect(insert(projectRoot)).rejects.toThrow(/^Couldnt find App\.js or App\.ts\/tsx in/)
await expect(insert(projectRoot)).rejects.toThrow(/^Couldnt find App\.js or App\.ts\(x\) in/)
})
})

Expand Down

0 comments on commit 43984cc

Please sign in to comment.