@vouchfor/embeds 0.0.0-experiment.75edba9 → 0.0.0-experiment.77214cd

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vouchfor/embeds",
3
- "version": "0.0.0-experiment.75edba9",
3
+ "version": "0.0.0-experiment.77214cd",
4
4
  "license": "MIT",
5
5
  "author": "Aaron Williams",
6
6
  "main": "dist/es/embeds.js",
@@ -28,7 +28,8 @@
28
28
  "size": "size-limit",
29
29
  "storybook": "yarn prebuild && storybook dev -p 6007",
30
30
  "prebuild": "yarn build:deps && yarn generate:manifest",
31
- "test": "true"
31
+ "test": "rm -rf test/lib && yarn prebuild && vite build --mode test && web-test-runner",
32
+ "test:ci": "yarn test"
32
33
  },
33
34
  "lint-staged": {
34
35
  "**/*.{ts,tsx,js}": "eslint --fix --quiet",
@@ -36,7 +37,7 @@
36
37
  },
37
38
  "dependencies": {
38
39
  "@lit/task": "^1.0.0",
39
- "@vouchfor/media-player": "0.0.0-experiment.75edba9",
40
+ "@vouchfor/media-player": "0.0.0-experiment.77214cd",
40
41
  "uuid": "^9.0.1"
41
42
  },
42
43
  "peerDependencies": {
@@ -69,6 +70,7 @@
69
70
  "storybook": "^7.4.5",
70
71
  "typescript": "^5.1.3",
71
72
  "vite": "^4.4.9",
73
+ "vite-plugin-commonjs": "^0.10.0",
72
74
  "vite-plugin-dts": "^3.6.0",
73
75
  "web-component-analyzer": "^1.1.7"
74
76
  }
@@ -0,0 +1,17 @@
1
+ import { expect } from '@esm-bundle/chai';
2
+ // import { fixture } from '@open-wc/testing';
3
+ // import { html } from 'lit';
4
+
5
+ // import type { Embed } from './index.js';
6
+
7
+ // Can't use typescript aliases with esbuild file transforms apparently
8
+ // No idea what a good way to actually build before testing is, the examples give nothing
9
+ // https://modern-web.dev/guides/test-runner/typescript/
10
+ import '../../test/lib/embeds.js';
11
+
12
+ describe('Embeds', () => {
13
+ it('passes', async () => {
14
+ expect(true).to.be.true;
15
+ // const player = await fixture<Embed>(html`<vouch-embed aspectratio=${1}></vouch-embed>`);
16
+ });
17
+ });