-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b5b2da0
commit 808429d
Showing
8 changed files
with
124 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,4 +20,7 @@ pnpm-lock.yaml | |
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
yarn.lock | ||
yarn.lock | ||
|
||
# settings | ||
/.vscode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { describe, it } from 'vitest' | ||
import { render } from 'solid-testing-library' | ||
import MapGL from '../..' | ||
import 'mapbox-gl/dist/mapbox-gl.css' | ||
|
||
describe('Map', () => { | ||
it('renders', async () => { | ||
await render(() => <MapGL></MapGL>) | ||
}) | ||
|
||
// it('renders with static viewport', () => { | ||
// render(() => <MapGL viewport={{ center: [0, 0], zoom: 5 }}></MapGL>) | ||
// }) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/// <reference types="vitest" /> | ||
/// <reference types="vite/client" /> | ||
|
||
import { defineConfig } from 'vite' | ||
import solid from 'vite-plugin-solid' | ||
|
||
export default defineConfig({ | ||
test: { | ||
environment: 'jsdom', | ||
transformMode: { | ||
web: [/\.[jt]sx?$/], | ||
}, | ||
// solid needs to be inline to work around | ||
// a resolution issue in vitest: | ||
deps: { | ||
inline: [/solid-js/], | ||
}, | ||
// if you have few tests, try commenting one | ||
// or both out to improve performance: | ||
// threads: false, | ||
// isolate: false, | ||
}, | ||
plugins: [solid()], | ||
resolve: { | ||
conditions: ['development', 'browser'], | ||
}, | ||
}) |