Skip to content

Commit b257bb8

Browse files
committed
Move examples to test env directory
1 parent 78ec0c9 commit b257bb8

File tree

23 files changed

+14
-21
lines changed

23 files changed

+14
-21
lines changed

.github/workflows/test.yml

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,9 @@ jobs:
2424
run: yarn test
2525
- name: Build project
2626
run: yarn build
27-
- name: Run ESM demo
28-
run: yarn test:demo:esm
29-
- name: Run Node.js demo
30-
run: yarn test:demo:nodejs
31-
- name: Run Browser demo
32-
run: yarn test:demo:browser
27+
- name: Run env tests
28+
run: yarn test:env
29+
3330

3431
style:
3532
name: style-check
@@ -50,9 +47,5 @@ jobs:
5047
- uses: actions/checkout@v1
5148
- name: Install dependencies
5249
run: yarn install
53-
- name: Run Vue build
54-
run: yarn build:playground:vue
55-
- name: Run React build
56-
run: yarn build:playground:react
57-
- name: Run Vanilla JS build
58-
run: yarn build:playground:vanilla-js
50+
- name: Run Playgrounds Builds
51+
run: yarn test:playgrounds

examples/express/.DS_Store

-6 KB
Binary file not shown.

examples/express/public/instant-meilisearch.umd.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
"description": "The search client to use MeiliSearch with InstantSearch.",
66
"scripts": {
77
"test": "jest",
8-
"test:demo": "yarn build && yarn test:demo:browser && yarn test:demo:nodejs && yarn test:demo:esm",
9-
"test:demo:browser": "yarn --cwd examples/express && yarn --cwd examples/express test",
10-
"test:demo:nodejs": "node examples/node/index.js",
11-
"test:demo:esm": "yarn --cwd examples/esm && yarn --cwd examples/esm start",
8+
"test:env": "yarn build && yarn test:env:browser && yarn test:env:nodejs && yarn test:env:esm",
9+
"test:env:browser": "yarn --cwd tests/env/express && yarn --cwd tests/env/express test",
10+
"test:env:nodejs": "node tests/env/node/index.js",
11+
"test:env:esm": "yarn --cwd tests/env/esm && yarn --cwd tests/env/esm start",
1212
"build:playground:vue": "yarn --cwd ./playgrounds/vue && yarn --cwd ./playgrounds/vue build",
1313
"build:playground:react": "yarn --cwd ./playgrounds/react && yarn --cwd ./playgrounds/react build",
1414
"build:playground:vanilla-js": "yarn --cwd ./playgrounds/vanilla-js && yarn --cwd ./playgrounds/vanilla-js build",
File renamed without changes.

examples/browser/index.html renamed to tests/env/browser/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<div id="instant-meilisearch"></div>
1212
</body>
1313
</html>
14-
<script src="../../dist/instant-meilisearch.umd.min.js"></script>
14+
<script src="../../../dist/instant-meilisearch.umd.min.js"></script>
1515
<script>
1616
console.log(instantMeiliSearch);
1717
const client = instantMeiliSearch(
File renamed without changes.
File renamed without changes.
File renamed without changes.

examples/esm/src/index.js renamed to tests/env/esm/src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import instantMeiliSearch from '../../../dist/instant-meilisearch.esm'
1+
import instantMeiliSearch from '../../../../dist/instant-meilisearch.esm'
22

33
console.log(instantMeiliSearch)
44
const client = instantMeiliSearch('http://localhost:7700', 'masterKey')

0 commit comments

Comments
 (0)