Skip to content

Commit

Permalink
Merge pull request #11 from deriv-com/thisyahlen/jest-config-typescri…
Browse files Browse the repository at this point in the history
…pt-fix

Thisyahlen/jest config typescript fix
  • Loading branch information
ali-hosseini-deriv authored Mar 25, 2024
2 parents de7bd3d + a611aec commit 5d7ef3b
Show file tree
Hide file tree
Showing 4 changed files with 619 additions and 38 deletions.
17 changes: 4 additions & 13 deletions .github/workflows/build-and-deploy-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
build_and_deploy_preview_link:
runs-on: Ubuntu-latest
permissions:
contents: read
checks: write
pull-requests: write
steps:
Expand All @@ -35,6 +36,7 @@ jobs:
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
with:
ref: ${{github.event.pull_request.head.sha}}
token: ${{ secrets.GITHUB_TOKEN }}

- name: Setup Node
uses: actions/setup-node@f1f314fca9dfce2769ece7d933488f076716723e
Expand All @@ -45,23 +47,12 @@ jobs:
uses: "deriv-com/shared-actions/.github/actions/npm_install@v1"

- name: Build
uses: "./.github/actions/build"
with:
target: staging

- name: Build Translations
uses: "./.github/actions/build"
with:
target: translations
run: npm run build
shell: bash

- name: "Run Tests"
run: npm run test

- name: Setup Node
uses: actions/setup-node@1a4442cacd436585916779262731d5b162bc6ec7
with:
node-version: 20

- name: Publish to CF pages branch
id: publish_to_pages_branch
uses: "deriv-com/shared-actions/.github/actions/publish_to_pages_branch@v1"
Expand Down
14 changes: 14 additions & 0 deletions babel.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
module.exports = {
presets: ['@babel/preset-env', '@babel/preset-react', '@babel/preset-typescript'],
plugins: [
['@babel/plugin-proposal-decorators', { legacy: true }],
'@babel/plugin-proposal-class-properties',
'@babel/plugin-proposal-export-default-from',
'@babel/plugin-proposal-export-namespace-from',
'@babel/plugin-proposal-object-rest-spread',
'@babel/plugin-syntax-dynamic-import',
['@babel/plugin-proposal-unicode-property-regex', { useUnicodeFlag: false }],
'@babel/plugin-proposal-optional-chaining',
'@babel/plugin-proposal-nullish-coalescing-operator',
],
};
Loading

0 comments on commit 5d7ef3b

Please sign in to comment.