Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test(core): assert installation does not output errors #1376

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions packages/core/src/core.spec.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,12 @@ describe(`E2E - ${packageToTest}`, () => {
afterEach(() => shouldCleanupAfterTest && deleteFolderRecursive(testSimpleProjectDir));

it(`Installs ${packageToTest} package`, async () => {
const {
code: installPackageCode,
// stderr: installPackageStderr
} = await exec(testSimpleProjectDir, `yarn add --dev "file:/${packagePath}"`);
const { code: installPackageCode, stderr: installPackageStderr } = await exec(
testSimpleProjectDir,
`yarn add --dev "file:/${packagePath}"`
);

// FIXME: installation ouput warnings due to dependencies
// expect(installPackageStderr).toBeFalsy();
expect(installPackageStderr).toBeFalsy();
expect(installPackageCode).toBe(0);

const {
Expand Down Expand Up @@ -114,11 +113,12 @@ describe(`E2E - ${packageToTest}`, () => {
afterEach(() => shouldCleanupAfterTest && deleteFolderRecursive(testMonorepoProjectDir));

it(`Installs ${packageToTest} package`, async () => {
const {
code: installPackageCode,
// stderr: installPackageStderr
} = await exec(testMonorepoProjectDir, `yarn add -W --dev "file:${packagePath}"`);
// expect(installPackageStderr).toBeFalsy();
const { code: installPackageCode, stderr: installPackageStderr } = await exec(
testMonorepoProjectDir,
`yarn add -W --dev "file:${packagePath}"`
);

expect(installPackageStderr).toBeFalsy();
expect(installPackageCode).toBe(0);

const {
Expand Down
Loading