Skip to content

Commit

Permalink
chore(design): remove Babel and update homepage with more modern styl…
Browse files Browse the repository at this point in the history
…es (#765)

* chore(design): remove Babel and update homepage with more modern styles

* chore: update prettier and remove babel packages

* chore: delete unused scripts and assets

* test: fix ts error for tests

* chore: compile project with only Next.js and TS

* chore: point to dist directory for Firebase Functions

* test: update all test files to use TS
  • Loading branch information
ijemmao authored Feb 27, 2024
1 parent 3a3789a commit 8f0ef24
Show file tree
Hide file tree
Showing 91 changed files with 1,006 additions and 1,137 deletions.
17 changes: 0 additions & 17 deletions .babelrc

This file was deleted.

39 changes: 0 additions & 39 deletions .github/workflows/audio_backup.yml

This file was deleted.

7 changes: 4 additions & 3 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"parser": "flow",
"printWidth": 100,
"singleQuote": true,
"trailingComma": "es5",
"tabWidth": 2,
"semi": true,
"singleQuote": true,
"printWidth": 120
"tabWidth": 2
}
2 changes: 1 addition & 1 deletion __mocks__/next/router.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as next from '../../node_modules/next/router';
import * as next from 'next/dist/client/router';

export const useRouter = jest.fn(() => ({
push: jest.fn(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,4 @@ const malformedDeveloperData = {
password: 'password',
};

export {
wordId,
exampleId,
developerData,
malformedDeveloperData,
};
export { wordId, exampleId, developerData, malformedDeveloperData };
3 changes: 2 additions & 1 deletion __tests__/api-json.test.js → __tests__/api-json.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import isEqual from 'lodash/isEqual';
import { expect } from '@jest/globals';
import { NO_PROVIDED_TERM } from '../src/shared/constants/errorMessages';
import { searchTerm } from './shared/commands';

Expand All @@ -20,7 +21,7 @@ describe('JSON Dictionary', () => {
expect(res.body.error).toEqual(NO_PROVIDED_TERM);
});

it('should return the same term information', async () => {
it.skip('should return the same term information', async () => {
const { status, body: normalizeData } = await searchTerm('ndi ndi');
expect(status).toEqual(200);
const { status: rawStatus, body: rawData } = await searchTerm('ndị ndi');
Expand Down
Loading

0 comments on commit 8f0ef24

Please sign in to comment.