Skip to content

Commit

Permalink
Merge pull request #4 from SavageCore/feature/improve-tests
Browse files Browse the repository at this point in the history
Improve tests
  • Loading branch information
SavageCore authored Sep 21, 2023
2 parents 274d76e + 0a6eb4a commit 1f178a0
Show file tree
Hide file tree
Showing 14 changed files with 14,202 additions and 5,548 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on:
push:

jobs:
build-and-deploy:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
Expand All @@ -24,3 +24,8 @@ jobs:
- name: Test 🧪
run: |
npm run test
- name: Upload coverage reports to Codecov 📊
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[![Build and Deploy](https://github.com/SavageCore/pd3-vault-cracker/actions/workflows/release.yml/badge.svg)](https://github.com/SavageCore/pd3-vault-cracker/actions/workflows/release.yml)

![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/SavageCore/pd3-vault-cracker/release.yml?style=for-the-badge) ![Codecov](https://img.shields.io/codecov/c/github/SavageCore/pd3-vault-cracker?style=for-the-badge) ![GitHub](https://img.shields.io/github/license/SavageCore/pd3-vault-cracker?style=for-the-badge)

# PD3 Vault Cracker

Expand Down
27 changes: 14 additions & 13 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
module.exports = {
testMatch: ['**/*.(test|spec).js'],
transform: {
'^.+\\.js$': '<rootDir>/jest.transform.js',
'^.+\\.svelte$': 'jest-transform-svelte'
},
moduleFileExtensions: ['js', 'svelte'],
bail: false,
moduleNameMapper: {
'^@([A-Z].*)$': '<rootDir>/src/$1'
},
setupFilesAfterEnv: [
"<rootDir>/jest.setup.js"
]
};
transform: {
'^.+\\.js$': 'babel-jest',
'^.+\\.svelte$': './node_modules/svelte-jester/dist/transformer.cjs'
},
moduleFileExtensions: ['js', 'svelte'],
testEnvironment: "jsdom",
bail: false,
moduleNameMapper: {
'^@([A-Z].*)$': '<rootDir>/src/$1'
},
setupFilesAfterEnv: [
"<rootDir>/jest.setup.js",
]
};
3 changes: 0 additions & 3 deletions jest.transform.js

This file was deleted.

Loading

0 comments on commit 1f178a0

Please sign in to comment.