Skip to content

Commit

Permalink
Tests (#1)
Browse files Browse the repository at this point in the history
* setup

* axios mock

* tetst

* ci test setup

* ci test setup

* ci test setup
  • Loading branch information
isidzukuri authored Dec 23, 2024
1 parent 09b9d2c commit c545968
Show file tree
Hide file tree
Showing 9 changed files with 12,144 additions and 8,554 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: CI
on:
pull_request:
push:
branches: [ main ]

jobs:
tests:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '18'

- name: Install dependencies
run: npm install

- name: Run Jest tests
run: npm test
12 changes: 12 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
module.exports = {
presets: [['@babel/preset-env', {targets: {node: 'current'}}]],
};



// const path = require('path');
// module.exports = {
// process(src, filename) {
// return `module.exports = ${JSON.stringify(path.basename(filename))};`;
// },
// };
Loading

0 comments on commit c545968

Please sign in to comment.