This file contains hidden or 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
const fs = require('node:fs'); | |
const path = require('node:path'); | |
const zlib = require('node:zlib'); | |
const buildDir = './dist/static/'; | |
const fileTypes = ['.js', '.css']; | |
const outputFile = 'compression-stats.md'; | |
const compressBrotli = filePath => { | |
const fileContents = fs.readFileSync(filePath); |
This file contains hidden or 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
it('should correctly render last-date laboratory result', () => { | |
const {getByText} = renderHomeResult(store); | |
expect(getByText('Urogenital swab')).toBeFound(); | |
expect(getByText('Inhibin B')).toBeFound(); | |
}); |
This file contains hidden or 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
const expect = require('expect'); | |
expect.extend({ | |
toBeFound(received) { | |
if (received === null) { | |
return { | |
message: () => 'Target node doesn\'t exist', | |
pass: false | |
}; | |
} |
This file contains hidden or 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
... | |
<ArchiveAction | |
buildConfiguration = "Release" | |
customArchiveName = "app-release" | |
revealArchiveInOrganizer = "YES"> | |
</ArchiveAction> | |
... |
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>method</key> | |
<string>development</string> | |
<key>teamID</key> | |
<string>YOUR_TEAM_ID</string> | |
<key>iCloudContainerEnvironment</key> | |
<string>Development</string> |
This file contains hidden or 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
# 1. Unlock keychain for auto-signing package * | |
security unlock-keychain -p <your-admin-password> ~/Library/Keychains/login.keychain | |
# 2. Build JS-bundle to Xcode project | |
react-native bundle --entry-file='index.js' --bundle-output='./ios/<your-app-name>/main.jsbundle' --dev=false --platform='ios' --assets-dest='./ios' | |
# 3. Building an archive | |
xcodebuild -project ./ios/<your-project-name>.xcodeproj -scheme '<your-scheme-name>' -derivedDataPath ./ios/build -archivePath ./ios/archive/<your-app-name>.xcarchive archive | xcpretty | |
# 4. Export the archive to an *.ipa package |
This file contains hidden or 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
"jest": { | |
"preset": "react-native", | |
"testPathIgnorePatterns": [ | |
"<rootDir>/node_modules/" | |
], | |
"moduleNameMapper": { | |
"styled-components": "styled-components/native" | |
}, | |
"transform": { | |
"^.+\\.js$": "<rootDir>/node_modules/react-native/jest/preprocessor.js" |
This file contains hidden or 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
"jest": { | |
"preset": "react-native", | |
"moduleNameMapper": { | |
"styled-components": "styled-components/native" | |
}, | |
"transform": { | |
"^.+\\.js$": "<rootDir>/node_modules/react-native/jest/preprocessor.js" | |
} | |
} |
This file contains hidden or 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
import Catalog from './index'; | |
import * as React from 'react'; | |
import mockStore from 'redux-mock-store'; | |
import state from '../../../dev/spec-helpers/state'; | |
import { renderComponent } from '../../../dev/spec-helpers/render-component'; | |
describe('Catalog', () => { | |
const store = mockStore(state); | |
it('should render component in init state', () => { |
This file contains hidden or 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
{ | |
"setupFiles": [ | |
"<rootDir>/config/jest/mocks.js" | |
] | |
} |
NewerOlder