* Fix 2 Factor Auth * Add a sandbox to verify types of embed-react * Add fault types location * Fix type location again * Break types * Ensure that builds are done again when doing pbublish * Debug failure in CI * Make sure unit test files arent used by playwright * Fix embed-react test description * Update .github/workflows/e2e-embed-react.yml Co-authored-by: Omar López <zomars@me.com> * Remove unnecessary log --------- Co-authored-by: Alex van Andel <me@alexvanandel.com> Co-authored-by: Omar López <zomars@me.com>
17 lines
749 B
TypeScript
17 lines
749 B
TypeScript
/**
|
|
* @fileoverview
|
|
* This file tests two things in 2 ways
|
|
* - It is a vitest test file and thus it tests if the code executes without any error. Thus, it tests that package.json->main/module fields are correctly defined. It obviously verifies the assertions as well.
|
|
* - It is also validates for it's types and thus verifies that @calcom/embed-react has correctly specified it's types in package.json->types field.
|
|
*/
|
|
import { expect, test } from "vitest";
|
|
|
|
// This import may show up as an error in your IDE, but it's fine because typings are available only after embed-react is built.
|
|
import { getCalApi } from "@calcom/embed-react";
|
|
|
|
const api = getCalApi();
|
|
|
|
test("Check that the API is available", () => {
|
|
expect(api).toBeDefined()
|
|
});
|