mirror of
https://github.com/hanzoai/analytics.git
synced 2026-10-30 15:05:29 +00:00
/login drew its own card against hanzo.id: discovery and the provider methods were read from hanzo.id, and "Continue with GitHub" went through hanzo.id's authorize. It also could not see a person already signed in on hanzo.ai, whose IAM session is host-only there. A signed-out visit now stashes the page asked for and leaves for hanzo.ai/login (/signup for a new account) with the query of the authorize request @hanzo/iam builds for hanzo-analytics: its callback, a fresh state and an S256 challenge whose verifier stays here. hanzo.ai finishes it, "Continue as" or its own sign-in, and /auth/callback exchanges the code and returns to that page. The browser asks IAM at api.hanzo.ai only: discovery, token, refresh, userinfo and revocation. The server reads IAM's keys there and pins the issuer to the iss tokens name. @hanzo/iam moves to 0.21.32, and the home org is read from the principal's org, the field it carries. The release is revived: deploy.yml built with buildx and qemu on a repo with Actions disabled, so nothing built. hanzo.yml and the hanzoai/ci caller have the door build the image in-cluster. jest runs through esbuild, since ts-jest cannot drive TypeScript 7 and every suite failed before it ran.
27 lines
1.2 KiB
TypeScript
27 lines
1.2 KiB
TypeScript
export default {
|
|
roots: ['./src'],
|
|
// The component-test harness (src/test/*, *.test.tsx) is upstream's VITEST
|
|
// setup and has never run in this fork: @testing-library/react,
|
|
// @testing-library/user-event and a jsdom environment are not declared in
|
|
// package.json at all, and src/test/setup.ts imports vitest directly. Jest
|
|
// picks the files up via testMatch and fails to resolve, which is the only
|
|
// reason `pnpm test` was red while every actual test passed.
|
|
//
|
|
// Excluded rather than deleted: enabling it is a real decision (add
|
|
// @testing-library/react + @testing-library/user-event +
|
|
// jest-environment-jsdom, set testEnvironment: 'jsdom', and port
|
|
// src/test/setup.ts off vitest). Nothing is lost today — these suites have
|
|
// never executed here.
|
|
testPathIgnorePatterns: ['/node_modules/', '<rootDir>/src/test/', '\\.test\\.tsx$'],
|
|
|
|
testMatch: ['**/__tests__/**/*.+(ts|tsx|js)', '**/?(*.)+(spec|test).+(ts|tsx|js)'],
|
|
transform: {
|
|
'^.+\\.(ts|tsx)$': '<rootDir>/jest.transform.cjs',
|
|
'/node_modules/.*/uuid/.+\\.js$': '<rootDir>/jest.transform.cjs',
|
|
},
|
|
transformIgnorePatterns: ['/node_modules/(?!(\\.pnpm/uuid@[^/]+/node_modules/)?uuid/)'],
|
|
moduleNameMapper: {
|
|
'^@/(.*)$': '<rootDir>/src/$1',
|
|
},
|
|
};
|