Skip to content

Commit

Permalink
chore: add unit test setup + test normalizeModuleFederationOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
judithhartmann committed Sep 29, 2024
1 parent f84b83f commit be5259d
Show file tree
Hide file tree
Showing 8 changed files with 3,078 additions and 7,314 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Unit Test Check

on:
pull_request:
branches:
- main

permissions:
pull-requests: read

jobs:
########### UNIT TEST PACKAGE ############
unit-test-package:
name: Unit Test Package
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: PNPM Install
uses: pnpm/action-setup@v4
with:
version: 9.1.3

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20.10.0
cache: 'pnpm'
registry-url: https://registry.npmjs.org/

- run: corepack enable

- name: Install NPM Dependencies
run: pnpm install --frozen-lockfile

- name: Test Library Check
if: ${{ always() }}
run: pnpm test
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
"dev-vv": "pnpm -filter 'examples-vite-vite*' run dev",
"dev-nv": "pnpm -filter 'examples-nuxt-vite-host' -filter 'examples-vite-vite-remote' run dev",
"preview-vv": "pnpm -filter 'examples-vite-vite*' run preview",
"multi-example": "pnpm --filter \"multi-example-*\" run start"
"multi-example": "pnpm --filter \"multi-example-*\" run start",
"test": "vitest"
},
"repository": {
"type": "git",
Expand All @@ -45,10 +46,11 @@
"dependencies": {
"@module-federation/runtime": "^0.6.0",
"@rollup/pluginutils": "^5.1.0",
"defu": "^6.1.4",
"estree-walker": "^2",
"magic-string": "^0.30.11",
"pathe": "^1.1.2",
"defu": "^6.1.4"
"vitest": "^2.1.1"
},
"devDependencies": {
"husky": "^8.0.3",
Expand Down
Loading

0 comments on commit be5259d

Please sign in to comment.