Compare commits
No commits in common. "5d731d066f64a384b6a6805b945c35d2a337904c" and "39ceff9cf76583e6cc1ee2e8e7443d39c67a619c" have entirely different histories.
5d731d066f
...
39ceff9cf7
@ -1,2 +1,2 @@
|
||||
adb shell su -c "cat '{{ dir }}/{{ file }}' | gzip | base64" \
|
||||
| base64 -d | gzip -d >'{{ file }}'
|
||||
sh adb shell su -c "cat '{{ dir }}/{{ file }}' | gzip | base64" \
|
||||
| base64 -d | gzip -d '{{ file }}'
|
||||
|
@ -2,7 +2,7 @@ import url from 'node:url';
|
||||
import path from 'node:path';
|
||||
import fs from 'node:fs';
|
||||
|
||||
import { defineConfig } from 'vitest/config';
|
||||
import { defineConfig } from 'vite';
|
||||
import react from '@vitejs/plugin-react';
|
||||
import wasm from 'vite-plugin-wasm';
|
||||
import replace from '@rollup/plugin-replace';
|
||||
@ -101,49 +101,4 @@ export default defineConfig({
|
||||
},
|
||||
},
|
||||
},
|
||||
test: {
|
||||
globals: true,
|
||||
mockReset: true,
|
||||
environment: 'jsdom',
|
||||
setupFiles: ['src/test-utils/setup-jest.ts'],
|
||||
alias: [
|
||||
{
|
||||
find: /^~\/(.*)/,
|
||||
replacement: 'src/$1',
|
||||
},
|
||||
],
|
||||
// workaround: sql.js is not ESModule friendly, yet...
|
||||
deps: {
|
||||
// inline: ['sql.js'],
|
||||
optimizer: {
|
||||
web: {
|
||||
include: ['sql.js'],
|
||||
},
|
||||
},
|
||||
},
|
||||
api: {
|
||||
port: 5174, // vite port + 1
|
||||
},
|
||||
coverage: {
|
||||
provider: 'v8',
|
||||
exclude: [
|
||||
// default rules
|
||||
'coverage/**',
|
||||
'dist/**',
|
||||
'packages/*/test{,s}/**',
|
||||
'**/*.d.ts',
|
||||
'cypress/**',
|
||||
'test{,s}/**',
|
||||
'test{,-*}.{js,cjs,mjs,ts,tsx,jsx}',
|
||||
'**/*{.,-}test.{js,cjs,mjs,ts,tsx,jsx}',
|
||||
'**/*{.,-}spec.{js,cjs,mjs,ts,tsx,jsx}',
|
||||
'**/__tests__/**',
|
||||
'**/{karma,rollup,webpack,vite,vitest,jest,ava,babel,nyc,cypress,tsup,build}.config.*',
|
||||
'**/.{eslint,mocha,prettier}rc.{js,cjs,yml}',
|
||||
|
||||
// custom ones
|
||||
'src/test-utils/**',
|
||||
],
|
||||
},
|
||||
},
|
||||
});
|
||||
|
43
vitest.config.ts
Normal file
43
vitest.config.ts
Normal file
@ -0,0 +1,43 @@
|
||||
import { defineConfig } from 'vitest/config';
|
||||
|
||||
export default defineConfig({
|
||||
test: {
|
||||
globals: true,
|
||||
mockReset: true,
|
||||
environment: 'jsdom',
|
||||
setupFiles: ['src/test-utils/setup-jest.ts'],
|
||||
alias: [
|
||||
{
|
||||
find: /^~\/(.*)/,
|
||||
replacement: 'src/$1',
|
||||
},
|
||||
],
|
||||
// workaround: sql.js is not ESModule friendly, yet...
|
||||
deps: {
|
||||
inline: ['sql.js'],
|
||||
},
|
||||
api: {
|
||||
port: 5174, // vite port + 1
|
||||
},
|
||||
coverage: {
|
||||
exclude: [
|
||||
// default rules
|
||||
'coverage/**',
|
||||
'dist/**',
|
||||
'packages/*/test{,s}/**',
|
||||
'**/*.d.ts',
|
||||
'cypress/**',
|
||||
'test{,s}/**',
|
||||
'test{,-*}.{js,cjs,mjs,ts,tsx,jsx}',
|
||||
'**/*{.,-}test.{js,cjs,mjs,ts,tsx,jsx}',
|
||||
'**/*{.,-}spec.{js,cjs,mjs,ts,tsx,jsx}',
|
||||
'**/__tests__/**',
|
||||
'**/{karma,rollup,webpack,vite,vitest,jest,ava,babel,nyc,cypress,tsup,build}.config.*',
|
||||
'**/.{eslint,mocha,prettier}rc.{js,cjs,yml}',
|
||||
|
||||
// custom ones
|
||||
'src/test-utils/**',
|
||||
],
|
||||
},
|
||||
},
|
||||
});
|
Loading…
Reference in New Issue
Block a user