Skip to content
Merged
Show file tree
Hide file tree
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
5 changes: 0 additions & 5 deletions packages/get-platform/jest.config.js

This file was deleted.

7 changes: 1 addition & 6 deletions packages/get-platform/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,11 @@
"bugs": "https://github.com/prisma/prisma/issues",
"devDependencies": {
"@codspeed/benchmark.js-plugin": "4.0.0",
"@swc/core": "1.11.5",
"@swc/jest": "0.2.37",
"@types/jest": "29.5.14",
"@types/node": "~20.19.24",
"benchmark": "2.1.4",
"escape-string-regexp": "5.0.0",
"execa": "8.0.1",
"fs-jetpack": "5.1.0",
"jest": "29.7.0",
"jest-junit": "16.0.0",
"kleur": "4.1.5",
"tempy": "1.0.1",
"terminal-link": "4.0.0",
Expand All @@ -37,7 +32,7 @@
"scripts": {
"dev": "DEV=true tsx helpers/build.ts",
"build": "tsx helpers/build.ts",
"test": "jest",
"test": "vitest run",
"prepublishOnly": "pnpm run build"
},
"files": [
Expand Down
6 changes: 4 additions & 2 deletions packages/get-platform/src/__tests__/getPlatform.test.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import { stripVTControlCharacters } from 'node:util'

import { describe, expect, it } from 'vitest'

import { getBinaryTargetForCurrentPlatformInternal, getPlatformInfoMemoized } from '../getPlatform'
import { jestConsoleContext, jestContext } from '../test-utils'
import { vitestConsoleContext, vitestContext } from '../test-utils/vitestContext'

const ctx = jestContext.new().add(jestConsoleContext()).assemble()
const ctx = vitestContext.new().add(vitestConsoleContext()).assemble()

describe('getPlatformInfoMemoized', () => {
it('repeated invocations are idempotent and memoized', async () => {
Expand Down
10 changes: 5 additions & 5 deletions packages/get-platform/src/__tests__/getSSLVersion.test.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import { computeLibSSLSpecificPaths, getArchFromUname, getSSLVersion } from '../../src/getPlatform'
import { jestContext } from '..'
import { describe, expect, it } from 'vitest'

import { computeLibSSLSpecificPaths, getArchFromUname, getSSLVersion } from '../getPlatform'
import { vitestContext } from '../test-utils/vitestContext'

const describeIf = (condition: boolean) => (condition ? describe : describe.skip)

const ctx = jestContext.new().assemble()
const ctx = vitestContext.new().assemble()

describeIf(process.platform === 'linux')('computeLibSSLSpecificPaths', () => {
// eslint-disable-next-line jest/no-identical-title
it('should not return an error', () => {
const arch = 'x64'
const archFromUname = 'x86_64'
Expand All @@ -15,7 +16,6 @@ describeIf(process.platform === 'linux')('computeLibSSLSpecificPaths', () => {
})

describeIf(process.platform === 'linux')('getSSLVersion', () => {
// eslint-disable-next-line jest/no-identical-title
it('should not return an error', async () => {
const archFromUname = await getArchFromUname()
await getSSLVersion([])
Expand Down
2 changes: 2 additions & 0 deletions packages/get-platform/src/__tests__/parseDistro.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { describe, expect, test } from 'vitest'

import { parseDistro } from '../getPlatform'

describe('parseDistro', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { describe, expect, test } from 'vitest'

import { parseLibSSLVersion, parseOpenSSLVersion } from '../getPlatform'

describe('parseOpenSSLVersion', () => {
Expand Down
15 changes: 0 additions & 15 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading