Creează un cont pentru a te abona la acest blog și a-i urmări articolele pe pagina Lectură.
-
So today I was awoken to the fact that my database had mysteriously lost data after putting out a new feature.
-
https://github.com/facebook/react-native/issues/29614#issuecomment-3069870022 this worked best for me: const [behaviour, setBehaviour] = useState(‘height’); useEffect(() => { const showListener = Keyboard.addListener(‘keyboardDidShow’, () => { setBehaviou…
-
'use strict'; const MongoClient = require('mongodb').MongoClient; const _ = require('lodash'); /** * @typedef IMongoStoreDocument * @extends import('mongodb').Document * @property {import('mongodb').ObjectId} _id * @property {number} counter * @pro…
-
https://addyosmani.com/blog/script-priorities/
-
Using this https://bojnansky.com/running-angular-tests-with-github-actions/ as a guide I made GitHub actions for angular testing, I used this action: name: Run Tests on: push: branches: - beta - main jobs: build: runs-on: ubuntu-la…
-
function handler(event) { const request = event.request; const response = event.response; const headers = response.headers; let original_uri = ''; if (request.headers.hasOwnProperty('x-original-uri')) { original_uri = requ…
-
A good env: https://jestjs.io/ https://jestjs.io/docs/mongodb https://www.npmjs.com/package/@mswjs/interceptors A good env setup: jest.config.js module.exports = { preset: '@shelf/jest-mongodb', transform: { "^.+\\.
-
ng test –include=’**/sign-in.component.spec.ts’
-
This is because NACL is used for internal routing as well so you need to add the ephemeral ports, i.e. https://docs.aws.amazon.com/vpc/latest/userguide/vpc-network-acls.html#nacl-ephemeral-ports most commonly 1024-65535, all AWS services use these ports to
-
You can do this with response-time plugin but I wanted something a bit more flexible and can easily be used on select routes as middleware, so I made: import onHeaders from 'on-headers'; import net from "net"; import moment from "moment/moment"; import Ap…