-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✅(backend) update jwt tokens within tests
With upgrade of PyJWT 2.6.0 jwt token header has changed, so we have to update our tests comparing jwt tokens.
- Loading branch information
Showing
3 changed files
with
91 additions
and
30 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 |
---|---|---|
@@ -0,0 +1,64 @@ | ||
import { resolve } from 'path'; | ||
import typescript from '@rollup/plugin-typescript'; | ||
import react from '@vitejs/plugin-react'; | ||
import postcss from 'rollup-plugin-postcss'; | ||
import { defineConfig } from 'vite'; | ||
|
||
// https://vitejs.dev/config/ | ||
export default defineConfig({ | ||
build: { | ||
emptyOutDir: false, | ||
lib: { | ||
entry: resolve(__dirname, './src/index.ts'), | ||
fileName: () => 'index.js', | ||
formats: ['es'], | ||
name: 'index', | ||
}, | ||
minify: false, | ||
rollupOptions: { | ||
external: [ | ||
'@jitsi/react-sdk', | ||
'axios', | ||
'formik', | ||
'grommet', | ||
'grommet-icons', | ||
'polished', | ||
'react', | ||
'react-intl', | ||
'react-query', | ||
'react-router-dom', | ||
'styled-components', | ||
'validator', | ||
'yup', | ||
], | ||
plugins: [ | ||
postcss({ | ||
modules: true, | ||
}), | ||
], | ||
treeshake: false, | ||
}, | ||
sourcemap: true, | ||
watch: { | ||
exclude: [resolve(__dirname, './src/tests'), resolve(__dirname, './src/**/*.spec.tsx?')], | ||
include: [resolve(__dirname, './src/**')], | ||
}, | ||
}, | ||
plugins: [ | ||
react(), | ||
typescript({ | ||
declaration: true, | ||
declarationDir: resolve(__dirname, './dist'), | ||
exclude: [ | ||
resolve(__dirname, './dist'), | ||
resolve(__dirname, './node_modules/**'), | ||
// Ignore all test stuff | ||
resolve(__dirname, './src/tests'), | ||
resolve(__dirname, './src/**/*.spec.tsx?'), | ||
], | ||
noEmitOnError: false, | ||
rootDir: resolve(__dirname, './src'), | ||
target: 'ESNext', | ||
}), | ||
], | ||
}); |
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
Empty file.