Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion libs/native-federation-core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@softarc/native-federation",
"version": "3.5.1",
"version": "3.5.2",
"type": "commonjs",
"license": "MIT",
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion libs/native-federation-esbuild/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@softarc/native-federation-esbuild",
"version": "3.5.1",
"version": "3.5.2",
"type": "commonjs",
"dependencies": {
"@rollup/plugin-commonjs": "^22.0.2",
Expand Down
2 changes: 1 addition & 1 deletion libs/native-federation-node/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@softarc/native-federation-node",
"version": "3.5.1",
"version": "3.5.2",
"license": "MIT",
"dependencies": {
"@softarc/native-federation-runtime": "~3.5.1",
Expand Down
2 changes: 1 addition & 1 deletion libs/native-federation-runtime/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@softarc/native-federation-runtime",
"version": "3.5.1",
"version": "3.5.2",
"license": "MIT",
"dependencies": {
"tslib": "^2.3.0"
Expand Down
2 changes: 1 addition & 1 deletion libs/native-federation-runtime/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
}
},
"test": {
"executor": "@nx/vite:test",
"executor": "@nx/vitest:test",
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
"options": {
"passWithNoTests": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,13 @@ describe('watch-federation-build', () => {
onmessage: null,
onerror: null,
};
vi.stubGlobal(
'EventSource',
vi.fn(() => eventSourceInstance),
);

// Create a proper constructor function for EventSource
const EventSourceMock = vi.fn(function (this: any) {
return eventSourceInstance;
});

vi.stubGlobal('EventSource', EventSourceMock);
});

describe('watchFederationBuildCompletion', () => {
Expand Down
4 changes: 2 additions & 2 deletions libs/native-federation-runtime/src/test-setup.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
import { setupZoneTestEnv } from 'jest-preset-angular/setup-env/zone';
setupZoneTestEnv();
// Vitest setup file
// Add any global test setup here if needed
3 changes: 2 additions & 1 deletion libs/native-federation-runtime/vitest.config.mts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { defineConfig } from 'vitest/config';
import { playwright } from '@vitest/browser-playwright';

const testPatterns = ['src/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'];
const integrationTestPatterns = ['src/**/*.integration.spec.ts'];
Expand Down Expand Up @@ -35,7 +36,7 @@ export default defineConfig({
include: integrationTestPatterns,
browser: {
enabled: true,
provider: 'playwright',
provider: playwright(),
headless: process.env.CI === 'true',
instances: [
{
Expand Down
6 changes: 3 additions & 3 deletions libs/native-federation/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@angular-architects/native-federation",
"version": "21.1.0",
"version": "21.1.1",
"main": "src/index.js",
"generators": "./collection.json",
"builders": "./builders.json",
Expand All @@ -20,8 +20,8 @@
},
"dependencies": {
"@babel/core": "^7.19.0",
"@softarc/native-federation": "^3.5.1",
"@softarc/native-federation-runtime": "^3.5.1",
"@softarc/native-federation": "~3.5.1",
"@softarc/native-federation-runtime": "~3.5.1",
"@chialab/esbuild-plugin-commonjs": "^0.19.0",
"esbuild": "^0.25.1",
"mrmime": "^1.0.1",
Expand Down
Loading