Small tweaks to the compat tests
Note: These are cherry-picked from the internal docker branch.
This commit is contained in:
parent
b646bb81e5
commit
024b1896c6
6 changed files with 23 additions and 8 deletions
|
@ -29,10 +29,17 @@
|
|||
"web-vitals": "^1.0.1"
|
||||
},
|
||||
"eslintConfig": {
|
||||
"extends": ["react-app", "react-app/jest"]
|
||||
"extends": [
|
||||
"react-app",
|
||||
"react-app/jest"
|
||||
]
|
||||
},
|
||||
"browserslist": {
|
||||
"production": [">0.2%", "not dead", "not op_mini all"],
|
||||
"production": [
|
||||
">0.2%",
|
||||
"not dead",
|
||||
"not op_mini all"
|
||||
],
|
||||
"development": [
|
||||
"last 1 chrome version",
|
||||
"last 1 firefox version",
|
||||
|
|
|
@ -15,5 +15,8 @@
|
|||
"react": "^18.1.0",
|
||||
"react-dom": "^18.1.0",
|
||||
"serve": "14.2.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"buffer": "^5.7.1"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
"version": "0.0.0",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
"build": "tsc && vite build",
|
||||
"build": "vite build",
|
||||
"preview": "vite preview"
|
||||
},
|
||||
"dependencies": {
|
||||
|
|
|
@ -17,5 +17,5 @@
|
|||
"jsx": "react-jsx"
|
||||
},
|
||||
"include": ["src"],
|
||||
"references": [{ "path": "./tsconfig.node.json" }]
|
||||
"references": [{"path": "./tsconfig.node.json"}]
|
||||
}
|
||||
|
|
|
@ -50,8 +50,10 @@ process.env.NPM_CONFIG_REGISTRY = config.VERDACCIO_URL
|
|||
|
||||
const tempVersion =
|
||||
'0.0.1-COMPAT.' +
|
||||
// a random integer between 1 and 50000
|
||||
(Math.floor(Math.random() * 50000) + 1).toString()
|
||||
(typeof argv['version'] === 'number'
|
||||
? argv['version'].toString()
|
||||
: // a random integer between 1 and 50000
|
||||
(Math.floor(Math.random() * 50000) + 1).toString())
|
||||
|
||||
/**
|
||||
* This script starts verdaccio and publishes all the packages in the monorepo to it, then
|
||||
|
@ -65,7 +67,9 @@ export async function installFixtures() {
|
|||
return false
|
||||
})
|
||||
|
||||
console.log('Using temporary version: ' + tempVersion)
|
||||
console.log(
|
||||
`Using temporary version: ${tempVersion} . Use --version=[NUMBER] to change.`,
|
||||
)
|
||||
console.log('Patching package.json files in ./test-*')
|
||||
const restoreTestPackageJsons = await patchTestPackageJsons()
|
||||
|
||||
|
@ -348,7 +352,7 @@ export async function getCompatibilityTestSetups() {
|
|||
*/
|
||||
export async function clean() {
|
||||
const toDelete = await globby(
|
||||
'./fixtures/*/package/(node_modules|yarn.lock|package-lock.json)',
|
||||
'./fixtures/*/package/(node_modules|yarn.lock|package-lock.json|.parcel-cache)',
|
||||
{
|
||||
cwd: config.PATH_TO_COMPAT_TESTS_ROOT,
|
||||
// node_modules et al are gitignored, but we still want to clean them
|
||||
|
|
|
@ -5,6 +5,7 @@ module.exports = {
|
|||
'<rootDir>/compat-tests/*.compat-test.ts',
|
||||
],
|
||||
moduleNameMapper: {},
|
||||
modulePathIgnorePatterns: ['<rootDir>/compat-tests/verdaccio'],
|
||||
// setupFiles: ['./theatre/shared/src/setupTestEnv.ts'],
|
||||
automock: false,
|
||||
// transform: {
|
||||
|
|
Loading…
Reference in a new issue