Vladislav Polyakov

Results 31 comments of Vladislav Polyakov

Inject maybe can help https://esbuild.github.io/api/#inject

```js module.exports = { setupFilesAfterEnv: ['/jest.setup.ts'], transform: { '^.+\\.tsx?$': [ 'esbuild-jest', { sourcemap: true, loaders: { '.spec.tsx': 'tsx', }, }, ], }, } ```

Maybe this repo can solve problem https://github.com/hannoeru/jest-esbuild

Why i can't see files in my DO spaces ?

This is my secret file (deployed to kube-system and default namespaces) ``` apiVersion: v1 kind: Secret metadata: name: csi-s3-secret stringData: accessKeyID: "MySuperSecretKey" secretAccessKey: "MySuperSecretAccessKey" endpoint: https://fra1.digitaloceanspaces.com region: "" encryptionKey: ""...

> Try removing the encryption key's key. Yes, I tried, the result is the same > Apart from that I can't tell of anything wrong. :(

> Also make sure that the secret is in the kube-system namespace ``` csi-attacher-sa-token-kwmk4 kubernetes.io/service-account-token 3 4h38m csi-do-controller-sa-token-j6tqb kubernetes.io/service-account-token 3 44d csi-do-node-sa-token-mv89r kubernetes.io/service-account-token 3 44d csi-provisioner-sa-token-sdkgt kubernetes.io/service-account-token 3 4h38m csi-s3-secret...

jest.config.js ``` module.exports = { preset: "vite-jest", setupFilesAfterEnv: ["/jest.setup.js"], testMatch: [ "/src/**/*.test.{js,jsx,ts,tsx}", ], testEnvironment: "jest-environment-jsdom", }; ```

If i removed all .css and .svg imports, i got another error: ``` FAIL src/App.test.tsx ✕ renders learn react link (96 ms) ● renders learn react link Invalid hook call....

My working copy ``` module.exports = { preset: "vite-jest", roots: [ "/src" ], testMatch: [ "/src/**/*.test.{js,jsx,ts,tsx}", ], "collectCoverageFrom": [ "src/**/*.{js,jsx,ts,tsx}", ], "testEnvironment": "jsdom", "transform": { "^.+\\.css$": "/jest/mocks/cssMock.js" }, "transformIgnorePatterns": [...