chore(typos): Fix low-impact typos
Signed-off-by: Gabriel Dugny <gabriel.dugny@believe.com>
This commit is contained in:
@@ -19,8 +19,8 @@ const { default: JestRuntime } = require('jest-runtime');
|
||||
const scriptTransformCache = new Map();
|
||||
|
||||
module.exports = class CachingJestRuntime extends JestRuntime {
|
||||
constructor(config, ...restAgs) {
|
||||
super(config, ...restAgs);
|
||||
constructor(config, ...restArgs) {
|
||||
super(config, ...restArgs);
|
||||
this.allowLoadAsEsm = config.extensionsToTreatAsEsm.includes('.mts');
|
||||
}
|
||||
|
||||
|
||||
@@ -131,10 +131,10 @@ const lockfileMock = `${HEADER}
|
||||
|
||||
// Avoid flakes by comparing sorted log lines. File system access is async, which leads to the log line order being indeterministic
|
||||
const expectLogsToMatch = (
|
||||
recievedLogs: String[],
|
||||
receivedLogs: String[],
|
||||
expected: String[],
|
||||
): void => {
|
||||
expect(recievedLogs.filter(Boolean).sort()).toEqual(expected.sort());
|
||||
expect(receivedLogs.filter(Boolean).sort()).toEqual(expected.sort());
|
||||
};
|
||||
|
||||
describe('bump', () => {
|
||||
|
||||
@@ -51,8 +51,8 @@ jest.mock('../../../../lib/run', () => {
|
||||
};
|
||||
});
|
||||
|
||||
function expectLogsToMatch(recievedLogs: String[], expected: String[]): void {
|
||||
expect(recievedLogs.filter(Boolean).sort()).toEqual(expected.sort());
|
||||
function expectLogsToMatch(receivedLogs: String[], expected: String[]): void {
|
||||
expect(receivedLogs.filter(Boolean).sort()).toEqual(expected.sort());
|
||||
}
|
||||
|
||||
describe('versions:migrate', () => {
|
||||
@@ -169,7 +169,7 @@ describe('versions:migrate', () => {
|
||||
});
|
||||
});
|
||||
|
||||
it('should replace the occurences of the moved package in files inside the correct package', async () => {
|
||||
it('should replace the occurrences of the moved package in files inside the correct package', async () => {
|
||||
mockDir.setContent({
|
||||
'package.json': JSON.stringify({
|
||||
workspaces: {
|
||||
@@ -259,7 +259,7 @@ describe('versions:migrate', () => {
|
||||
);
|
||||
});
|
||||
|
||||
it('should replaces the occurences of changed packages, and is careful', async () => {
|
||||
it('should replaces the occurrences of changed packages, and is careful', async () => {
|
||||
mockDir.setContent({
|
||||
'package.json': JSON.stringify({
|
||||
workspaces: {
|
||||
|
||||
@@ -69,7 +69,7 @@ export async function findTargetPackages(
|
||||
|
||||
const packages = await PackageGraph.listTargetPackages();
|
||||
|
||||
// Priorotize plugin options, so that the `start` script can contain a list of packages,
|
||||
// Prioritize plugin options, so that the `start` script can contain a list of packages,
|
||||
// but make them easy to override by running for example `yarn start --plugin catalog`
|
||||
for (const pluginId of pluginIds) {
|
||||
const matchingPackages = packages.filter(pkg => {
|
||||
|
||||
Reference in New Issue
Block a user