cal.pub0.org/packages/embeds/embed-react/test/packaged
Wesley dfde17111c
test: verify embed helpers (#11318)
* test: add test cases to `window.getEmbedNamespace`

* test: add test cases when window.name doesn't have cal-embed=

* test: add test case to `getembedTheme` returning the theme from embedStore

* test: add test to `getEmbedTheme` returning the theme from query params

* Small refactor to reduce the time taken by tests and fix missing typings for embed functions on window

* Fix weird test failure

* Fix type import error caught by api.test.test

---------

Co-authored-by: Hariom Balhara <hariombalhara@gmail.com>
2023-09-14 07:14:54 +00:00
..
README.md chore: Sync packages mismatches (#9725) 2023-06-22 15:25:37 -07:00
api.test.ts test: verify embed helpers (#11318) 2023-09-14 07:14:54 +00:00
tsconfig.json Fixup tsconfig.json in packaged embed-react (#9330) 2023-06-05 09:57:53 +00:00

README.md

Packaged

The tests in this file are run on the packaged code that is published to npm. The packaged code is different from the source code in atleast the following ways

  • Not all files go to packaged code.If package.json -> files field is specified then only the files that are specified there would be published. So, one might accidentally miss an important file that's available otherwise.
  • The packaged code doesn't have .ts files. Those files are actually converted to .js files and .d.ts files are generated separately for TypeScript support. It allows the package to work in both TypeScript and non TypeScript environments.