mirror of
https://github.com/kuhyx/screen-locker.git
synced 2026-11-30 09:25:31 +01:00
Compare commits
No commits in common. "97f4e49a5f7a171ec6ec605242048534c95ae894" and "7ae4c134074db222bbadb98503f77b90b5235051" have entirely different histories.
97f4e49a5f
...
7ae4c13407
@ -17,17 +17,11 @@ which is the only warning that arrives before the credential is already gone.
|
|||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from datetime import UTC, datetime, timedelta
|
from datetime import UTC, datetime, timedelta
|
||||||
import importlib
|
|
||||||
import os
|
import os
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
import pkgutil
|
|
||||||
import pwd
|
|
||||||
import sys
|
|
||||||
|
|
||||||
from crdt_sync import FirebaseCredentials, credential_store_for
|
from crdt_sync import FirebaseCredentials, credential_store_for
|
||||||
|
|
||||||
import screen_locker
|
|
||||||
|
|
||||||
|
|
||||||
def _fixture_credentials() -> FirebaseCredentials:
|
def _fixture_credentials() -> FirebaseCredentials:
|
||||||
"""Return throwaway credentials shaped like a real cached session."""
|
"""Return throwaway credentials shaped like a real cached session."""
|
||||||
@ -79,27 +73,3 @@ def test_saving_a_credential_writes_only_inside_tmp_path(tmp_path: Path) -> None
|
|||||||
written = tmp_path / ".config" / "screen_locker" / "firebase_auth.json"
|
written = tmp_path / ".config" / "screen_locker" / "firebase_auth.json"
|
||||||
assert written.is_file()
|
assert written.is_file()
|
||||||
assert "fixture-refresh-token" in written.read_text()
|
assert "fixture-refresh-token" in written.read_text()
|
||||||
|
|
||||||
|
|
||||||
def test_no_module_binds_a_path_inside_the_real_app_config() -> None:
|
|
||||||
"""Import-time bindings of ``~/.config/screen_locker`` must all be redirected.
|
|
||||||
|
|
||||||
``_isolate_home`` only reaches paths built from ``Path.home()`` at *call*
|
|
||||||
time. A module constant such as ``SYNC_TOKEN_FILE`` was bound at import,
|
|
||||||
before any fixture ran, and keeps the real path unless every module that
|
|
||||||
holds it is patched. This scans every runtime module for such a binding,
|
|
||||||
so a new one fails here instead of silently writing to the live dir.
|
|
||||||
"""
|
|
||||||
real_config = Path(pwd.getpwuid(os.getuid()).pw_dir) / ".config" / "screen_locker"
|
|
||||||
for info in pkgutil.walk_packages(screen_locker.__path__, "screen_locker."):
|
|
||||||
if ".tests" not in info.name:
|
|
||||||
importlib.import_module(info.name)
|
|
||||||
offenders = sorted(
|
|
||||||
f"{name}.{attr}"
|
|
||||||
for name, module in list(sys.modules.items())
|
|
||||||
if name.startswith("screen_locker.") and ".tests" not in name
|
|
||||||
for attr, value in vars(module).items()
|
|
||||||
if isinstance(value, Path)
|
|
||||||
and (value == real_config or real_config in value.parents)
|
|
||||||
)
|
|
||||||
assert offenders == []
|
|
||||||
|
|||||||
@ -7,7 +7,6 @@ for every test in this directory.
|
|||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from contextlib import ExitStack
|
|
||||||
from typing import TYPE_CHECKING
|
from typing import TYPE_CHECKING
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
@ -18,17 +17,6 @@ if TYPE_CHECKING:
|
|||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
|
|
||||||
# Every module that holds SYNC_TOKEN_FILE (~/.config/screen_locker/sync_token)
|
|
||||||
# by value, bound at import before any fixture could redirect Path.home().
|
|
||||||
_SYNC_TOKEN_BINDINGS = (
|
|
||||||
"_constants",
|
|
||||||
"_manual_push",
|
|
||||||
"_sync_client",
|
|
||||||
"_sync_status",
|
|
||||||
"_workout_sync",
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture(autouse=True)
|
@pytest.fixture(autouse=True)
|
||||||
def isolate_sync_token(tmp_path: Path) -> Iterator[None]:
|
def isolate_sync_token(tmp_path: Path) -> Iterator[None]:
|
||||||
"""Redirect SYNC_TOKEN_FILE to tmp_path so tests never see a real token.
|
"""Redirect SYNC_TOKEN_FILE to tmp_path so tests never see a real token.
|
||||||
@ -42,13 +30,12 @@ def isolate_sync_token(tmp_path: Path) -> Iterator[None]:
|
|||||||
"""
|
"""
|
||||||
# read_sync_token moved to _sync_client when _workout_sync was split;
|
# read_sync_token moved to _sync_client when _workout_sync was split;
|
||||||
# _workout_sync still re-exports the constant, so both names must be
|
# _workout_sync still re-exports the constant, so both names must be
|
||||||
# redirected or a real token on the host leaks into the tests. The rest
|
# redirected or a real token on the host leaks into the tests.
|
||||||
# bind it by value too (only for messages today); patching every binding
|
|
||||||
# is what test_home_isolation's module scan checks.
|
|
||||||
token = tmp_path / "sync_token"
|
token = tmp_path / "sync_token"
|
||||||
with ExitStack() as stack:
|
with (
|
||||||
for module in _SYNC_TOKEN_BINDINGS:
|
patch("screen_locker._sync_client.SYNC_TOKEN_FILE", token),
|
||||||
stack.enter_context(patch(f"screen_locker.{module}.SYNC_TOKEN_FILE", token))
|
patch("screen_locker._workout_sync.SYNC_TOKEN_FILE", token),
|
||||||
|
):
|
||||||
yield
|
yield
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -1,50 +0,0 @@
|
|||||||
/// Where the Linux desktop build keeps its per-app config (`~/.config`).
|
|
||||||
///
|
|
||||||
/// Every desktop path this app reads or writes under the user's home goes
|
|
||||||
/// through [desktopConfigRoot]: the shared Firebase refresh token in
|
|
||||||
/// `screen_locker/firebase_auth.json` and the account in `crdt-sync/`.
|
|
||||||
///
|
|
||||||
/// It exists as one choke point because `flutter test` runs on a Linux host,
|
|
||||||
/// so `Platform.isLinux` is true there too. Before this seam, a sign-in test
|
|
||||||
/// that stored its fixture refresh token wrote it straight over the live
|
|
||||||
/// credential the screen-locker daemon signs in with.
|
|
||||||
library;
|
|
||||||
|
|
||||||
import 'dart:io';
|
|
||||||
|
|
||||||
import 'package:flutter/foundation.dart';
|
|
||||||
import 'package:path/path.dart' as p;
|
|
||||||
|
|
||||||
/// Replaces `$HOME/.config` for the rest of the process when non-null.
|
|
||||||
///
|
|
||||||
/// `test/flutter_test_config.dart` points it at a temp directory for every
|
|
||||||
/// test file; nothing in the app sets it.
|
|
||||||
@visibleForTesting
|
|
||||||
String? desktopConfigRootOverride;
|
|
||||||
|
|
||||||
/// Returns the config root (`$HOME/.config`), or null when HOME is unset.
|
|
||||||
///
|
|
||||||
/// Throws [StateError] under `flutter test` (which exports `FLUTTER_TEST`)
|
|
||||||
/// when the root would be the real `$HOME/.config` or anywhere inside it: a
|
|
||||||
/// test that got here without the temp-dir override would otherwise read the
|
|
||||||
/// real account and overwrite the real refresh token, and still pass.
|
|
||||||
/// [environment] defaults to [Platform.environment]; tests pass their own.
|
|
||||||
String? desktopConfigRoot({Map<String, String>? environment}) {
|
|
||||||
final env = environment ?? Platform.environment;
|
|
||||||
final home = env['HOME'];
|
|
||||||
final realRoot = (home == null || home.isEmpty)
|
|
||||||
? null
|
|
||||||
: p.join(home, '.config');
|
|
||||||
final root = desktopConfigRootOverride ?? realRoot;
|
|
||||||
if (env.containsKey('FLUTTER_TEST') && realRoot != null && root != null) {
|
|
||||||
if (p.equals(root, realRoot) || p.isWithin(realRoot, root)) {
|
|
||||||
throw StateError(
|
|
||||||
'Refusing to use the real $realRoot under flutter test: that is the '
|
|
||||||
'live desktop credential store. Set desktopConfigRootOverride to a '
|
|
||||||
'temp directory (test/flutter_test_config.dart does this for every '
|
|
||||||
'test file).',
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return root;
|
|
||||||
}
|
|
||||||
@ -20,7 +20,6 @@ import 'package:crdt_sync/crdt_sync.dart';
|
|||||||
import 'package:flutter_secure_storage/flutter_secure_storage.dart';
|
import 'package:flutter_secure_storage/flutter_secure_storage.dart';
|
||||||
import 'package:http/http.dart' as http;
|
import 'package:http/http.dart' as http;
|
||||||
import 'package:path/path.dart' as p;
|
import 'package:path/path.dart' as p;
|
||||||
import 'package:workout_app/services/desktop_config_dir.dart';
|
|
||||||
import 'package:workout_app/services/google_sign_in_backend.dart';
|
import 'package:workout_app/services/google_sign_in_backend.dart';
|
||||||
|
|
||||||
part 'firebase_backend_desktop.dart';
|
part 'firebase_backend_desktop.dart';
|
||||||
@ -59,14 +58,11 @@ SecureCredentialStore credentialStore() {
|
|||||||
return SecureCredentialStore(
|
return SecureCredentialStore(
|
||||||
read: (key) async {
|
read: (key) async {
|
||||||
final file = _desktopCredentialFile();
|
final file = _desktopCredentialFile();
|
||||||
if (file == null || !file.existsSync()) return null;
|
if (!file.existsSync()) return null;
|
||||||
return await file.readAsString();
|
return await file.readAsString();
|
||||||
},
|
},
|
||||||
write: (key, value) async {
|
write: (key, value) async {
|
||||||
final file = _desktopCredentialFile();
|
final file = _desktopCredentialFile();
|
||||||
if (file == null) {
|
|
||||||
throw StateError('HOME is unset: nowhere to store the session.');
|
|
||||||
}
|
|
||||||
await file.parent.create(recursive: true);
|
await file.parent.create(recursive: true);
|
||||||
await file.writeAsString(value);
|
await file.writeAsString(value);
|
||||||
// The refresh token is the secret worth protecting; keep it 0600 the
|
// The refresh token is the secret worth protecting; keep it 0600 the
|
||||||
@ -75,7 +71,7 @@ SecureCredentialStore credentialStore() {
|
|||||||
},
|
},
|
||||||
delete: (key) async {
|
delete: (key) async {
|
||||||
final file = _desktopCredentialFile();
|
final file = _desktopCredentialFile();
|
||||||
if (file != null && file.existsSync()) await file.delete();
|
if (file.existsSync()) await file.delete();
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -16,15 +16,14 @@ part of 'firebase_backend.dart';
|
|||||||
/// Deliberately the SAME file the PC's own sync already uses: the fleet holds
|
/// Deliberately the SAME file the PC's own sync already uses: the fleet holds
|
||||||
/// one long-lived refresh token per app, and a second copy would drift out of
|
/// one long-lived refresh token per app, and a second copy would drift out of
|
||||||
/// date the first time either half refreshed it.
|
/// date the first time either half refreshed it.
|
||||||
///
|
File _desktopCredentialFile() => File(
|
||||||
/// Resolved through [desktopConfigRoot], which throws under `flutter test`
|
p.join(
|
||||||
/// rather than let a test reach the live file. Null when HOME is unset; the
|
Platform.environment['HOME'] ?? '',
|
||||||
/// old `HOME ?? ''` silently resolved a cwd-relative `.config/` instead.
|
'.config',
|
||||||
File? _desktopCredentialFile() {
|
'screen_locker',
|
||||||
final root = desktopConfigRoot();
|
'firebase_auth.json',
|
||||||
if (root == null) return null;
|
),
|
||||||
return File(p.join(root, 'screen_locker', 'firebase_auth.json'));
|
);
|
||||||
}
|
|
||||||
|
|
||||||
/// Reads the shared desktop credential from `~/.config/crdt-sync/`.
|
/// Reads the shared desktop credential from `~/.config/crdt-sync/`.
|
||||||
///
|
///
|
||||||
@ -38,11 +37,9 @@ File? _desktopCredentialFile() {
|
|||||||
/// Returns null when the files are absent or malformed; the caller then
|
/// Returns null when the files are absent or malformed; the caller then
|
||||||
/// reports the device as not connected, exactly as an empty keystore would.
|
/// reports the device as not connected, exactly as an empty keystore would.
|
||||||
Future<FirebaseAccount?> _accountFromDesktopConfig() async {
|
Future<FirebaseAccount?> _accountFromDesktopConfig() async {
|
||||||
// Resolved outside the try: its flutter-test guard must fail the test, not
|
|
||||||
// be logged and swallowed as "not connected" by the catch-all below.
|
|
||||||
final root = desktopConfigRoot();
|
|
||||||
try {
|
try {
|
||||||
if (root == null) {
|
final home = Platform.environment['HOME'];
|
||||||
|
if (home == null || home.isEmpty) {
|
||||||
log(
|
log(
|
||||||
'WorkoutApp: HOME is unset — cannot locate ~/.config/crdt-sync, so '
|
'WorkoutApp: HOME is unset — cannot locate ~/.config/crdt-sync, so '
|
||||||
'this desktop is NOT connected to sync.',
|
'this desktop is NOT connected to sync.',
|
||||||
@ -50,7 +47,7 @@ Future<FirebaseAccount?> _accountFromDesktopConfig() async {
|
|||||||
);
|
);
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
final dir = Directory(p.join(root, 'crdt-sync'));
|
final dir = Directory(p.join(home, '.config', 'crdt-sync'));
|
||||||
final configFile = File(p.join(dir.path, 'firebase.json'));
|
final configFile = File(p.join(dir.path, 'firebase.json'));
|
||||||
final passwordFile = File(p.join(dir.path, 'password'));
|
final passwordFile = File(p.join(dir.path, 'password'));
|
||||||
if (!configFile.existsSync() || !passwordFile.existsSync()) {
|
if (!configFile.existsSync() || !passwordFile.existsSync()) {
|
||||||
|
|||||||
@ -1,12 +1,9 @@
|
|||||||
import 'dart:convert';
|
import 'dart:convert';
|
||||||
import 'dart:io';
|
|
||||||
|
|
||||||
import 'package:crdt_sync/crdt_sync.dart';
|
import 'package:crdt_sync/crdt_sync.dart';
|
||||||
import 'package:flutter_test/flutter_test.dart';
|
import 'package:flutter_test/flutter_test.dart';
|
||||||
import 'package:http/http.dart' as http;
|
import 'package:http/http.dart' as http;
|
||||||
import 'package:http/testing.dart' as http_testing;
|
import 'package:http/testing.dart' as http_testing;
|
||||||
import 'package:path/path.dart' as p;
|
|
||||||
import 'package:workout_app/services/desktop_config_dir.dart';
|
|
||||||
import 'package:workout_app/services/firebase_backend.dart';
|
import 'package:workout_app/services/firebase_backend.dart';
|
||||||
import 'package:workout_app/services/google_sign_in_backend.dart';
|
import 'package:workout_app/services/google_sign_in_backend.dart';
|
||||||
|
|
||||||
@ -69,18 +66,6 @@ void main() {
|
|||||||
// No password to store: this device authenticates with the refresh
|
// No password to store: this device authenticates with the refresh
|
||||||
// token, and openFirebase() must not later try to sign in with ''.
|
// token, and openFirebase() must not later try to sign in with ''.
|
||||||
expect(saved.single.password, isEmpty);
|
expect(saved.single.password, isEmpty);
|
||||||
// The session itself went through credentialStore(), which on this
|
|
||||||
// Linux host is the desktop file -- redirected by flutter_test_config.
|
|
||||||
// Before that redirect, this very test overwrote the live
|
|
||||||
// ~/.config/screen_locker/firebase_auth.json with 'refresh'.
|
|
||||||
final session = File(
|
|
||||||
p.join(
|
|
||||||
desktopConfigRootOverride!,
|
|
||||||
'screen_locker',
|
|
||||||
'firebase_auth.json',
|
|
||||||
),
|
|
||||||
);
|
|
||||||
expect(session.readAsStringSync(), contains('"refresh"'));
|
|
||||||
client!.close();
|
client!.close();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@ -1,33 +0,0 @@
|
|||||||
/// Suite-wide setup: applied by `flutter test` to every test file below.
|
|
||||||
///
|
|
||||||
/// The test host is Linux, so every `Platform.isLinux` desktop branch runs
|
|
||||||
/// here -- including the one that stores the Firebase refresh token in
|
|
||||||
/// `~/.config/screen_locker/firebase_auth.json`, the live credential the
|
|
||||||
/// screen-locker daemon signs in with. A sign-in test once overwrote it with
|
|
||||||
/// fixture values and still passed. Each test now gets its own throwaway
|
|
||||||
/// config root instead; `desktopConfigRoot` refuses the real one under
|
|
||||||
/// `flutter test`, so a test that slipped past this fails loudly.
|
|
||||||
library;
|
|
||||||
|
|
||||||
import 'dart:async';
|
|
||||||
import 'dart:io';
|
|
||||||
|
|
||||||
import 'package:flutter_test/flutter_test.dart';
|
|
||||||
import 'package:workout_app/services/desktop_config_dir.dart';
|
|
||||||
|
|
||||||
Future<void> testExecutable(FutureOr<void> Function() testMain) async {
|
|
||||||
// Also set up front, so code that runs while tests are being declared is
|
|
||||||
// redirected too, not only code inside a test body.
|
|
||||||
final declarationRoot = _freshRoot();
|
|
||||||
desktopConfigRootOverride = declarationRoot.path;
|
|
||||||
tearDownAll(() => declarationRoot.deleteSync(recursive: true));
|
|
||||||
setUp(() {
|
|
||||||
final root = _freshRoot();
|
|
||||||
desktopConfigRootOverride = root.path;
|
|
||||||
addTearDown(() => root.deleteSync(recursive: true));
|
|
||||||
});
|
|
||||||
await testMain();
|
|
||||||
}
|
|
||||||
|
|
||||||
Directory _freshRoot() =>
|
|
||||||
Directory.systemTemp.createTempSync('workout_app_test_config_');
|
|
||||||
@ -1,118 +0,0 @@
|
|||||||
import 'dart:io';
|
|
||||||
|
|
||||||
import 'package:flutter_test/flutter_test.dart';
|
|
||||||
import 'package:path/path.dart' as p;
|
|
||||||
import 'package:workout_app/services/desktop_config_dir.dart';
|
|
||||||
import 'package:workout_app/services/firebase_backend.dart';
|
|
||||||
|
|
||||||
/// Runs [body] with the suite-wide override cleared, restoring it after.
|
|
||||||
void _withoutOverride(void Function() body) {
|
|
||||||
final saved = desktopConfigRootOverride;
|
|
||||||
desktopConfigRootOverride = null;
|
|
||||||
try {
|
|
||||||
body();
|
|
||||||
} finally {
|
|
||||||
desktopConfigRootOverride = saved;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void main() {
|
|
||||||
const home = '/home/someone';
|
|
||||||
const testEnv = {'HOME': home, 'FLUTTER_TEST': 'true'};
|
|
||||||
|
|
||||||
group('suite isolation', () {
|
|
||||||
test('flutter test exports FLUTTER_TEST, which the guard keys on', () {
|
|
||||||
expect(Platform.environment.containsKey('FLUTTER_TEST'), isTrue);
|
|
||||||
});
|
|
||||||
|
|
||||||
test('flutter_test_config points every test at a temp root', () {
|
|
||||||
final root = desktopConfigRoot();
|
|
||||||
expect(root, isNotNull);
|
|
||||||
expect(root, desktopConfigRootOverride);
|
|
||||||
expect(p.isWithin(Directory.systemTemp.path, root!), isTrue);
|
|
||||||
final realHome = Platform.environment['HOME'];
|
|
||||||
if (realHome != null && realHome.isNotEmpty) {
|
|
||||||
expect(p.isWithin(realHome, root), isFalse);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
test('a stored session lands in the temp root, not ~/.config', () async {
|
|
||||||
// The write the 2026-09 incident performed: a sign-in test stored its
|
|
||||||
// fixture refresh token through credentialStore() on the Linux host.
|
|
||||||
await credentialStore().write('firebase.credentials', '{}');
|
|
||||||
final written = File(
|
|
||||||
p.join(
|
|
||||||
desktopConfigRootOverride!,
|
|
||||||
'screen_locker',
|
|
||||||
'firebase_auth.json',
|
|
||||||
),
|
|
||||||
);
|
|
||||||
expect(written.existsSync(), isTrue);
|
|
||||||
});
|
|
||||||
|
|
||||||
test('without the override, storing a session fails loudly', () async {
|
|
||||||
final saved = desktopConfigRootOverride;
|
|
||||||
desktopConfigRootOverride = null;
|
|
||||||
addTearDown(() => desktopConfigRootOverride = saved);
|
|
||||||
await expectLater(
|
|
||||||
credentialStore().write('firebase.credentials', '{}'),
|
|
||||||
throwsStateError,
|
|
||||||
);
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
group('desktopConfigRoot', () {
|
|
||||||
test('is HOME/.config outside flutter test', () {
|
|
||||||
_withoutOverride(() {
|
|
||||||
expect(
|
|
||||||
desktopConfigRoot(environment: const {'HOME': home}),
|
|
||||||
'$home/.config',
|
|
||||||
);
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
test('is null when HOME is unset or empty', () {
|
|
||||||
_withoutOverride(() {
|
|
||||||
expect(desktopConfigRoot(environment: const {}), isNull);
|
|
||||||
expect(desktopConfigRoot(environment: const {'HOME': ''}), isNull);
|
|
||||||
expect(
|
|
||||||
desktopConfigRoot(environment: const {'FLUTTER_TEST': 'true'}),
|
|
||||||
isNull,
|
|
||||||
);
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
test('refuses the real ~/.config under flutter test', () {
|
|
||||||
_withoutOverride(() {
|
|
||||||
expect(
|
|
||||||
() => desktopConfigRoot(environment: testEnv),
|
|
||||||
throwsA(
|
|
||||||
isA<StateError>().having(
|
|
||||||
(e) => e.message,
|
|
||||||
'message',
|
|
||||||
contains('desktopConfigRootOverride'),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
);
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
test('refuses an override inside the real ~/.config too', () {
|
|
||||||
final saved = desktopConfigRootOverride;
|
|
||||||
addTearDown(() => desktopConfigRootOverride = saved);
|
|
||||||
desktopConfigRootOverride = '$home/.config/elsewhere';
|
|
||||||
expect(() => desktopConfigRoot(environment: testEnv), throwsStateError);
|
|
||||||
});
|
|
||||||
|
|
||||||
test('returns an override outside the real ~/.config', () {
|
|
||||||
final saved = desktopConfigRootOverride;
|
|
||||||
addTearDown(() => desktopConfigRootOverride = saved);
|
|
||||||
desktopConfigRootOverride = '/tmp/isolated';
|
|
||||||
expect(desktopConfigRoot(environment: testEnv), '/tmp/isolated');
|
|
||||||
expect(
|
|
||||||
desktopConfigRoot(environment: const {'HOME': home}),
|
|
||||||
'/tmp/isolated',
|
|
||||||
);
|
|
||||||
});
|
|
||||||
});
|
|
||||||
}
|
|
||||||
8
web/package-lock.json
generated
8
web/package-lock.json
generated
@ -17,7 +17,7 @@
|
|||||||
"@testing-library/jest-dom": "7.0.1",
|
"@testing-library/jest-dom": "7.0.1",
|
||||||
"@testing-library/react": "16.3.3",
|
"@testing-library/react": "16.3.3",
|
||||||
"@testing-library/user-event": "14.6.7",
|
"@testing-library/user-event": "14.6.7",
|
||||||
"@types/node": "26.6.3",
|
"@types/node": "26.6.2",
|
||||||
"@types/react": "19.3.0",
|
"@types/react": "19.3.0",
|
||||||
"@types/react-dom": "19.3.0",
|
"@types/react-dom": "19.3.0",
|
||||||
"@vitejs/plugin-react": "6.1.1",
|
"@vitejs/plugin-react": "6.1.1",
|
||||||
@ -1251,9 +1251,9 @@
|
|||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
},
|
},
|
||||||
"node_modules/@types/node": {
|
"node_modules/@types/node": {
|
||||||
"version": "26.6.3",
|
"version": "26.6.2",
|
||||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-26.6.3.tgz",
|
"resolved": "https://registry.npmjs.org/@types/node/-/node-26.6.2.tgz",
|
||||||
"integrity": "sha512-dsqMQQoeTLqu9wynDD00q573mNzso3IdQOAfHRJqLCcmCFPoGo9A1bDpUcv/9tnKpErQWv9uKeGfl37EIS02Yg==",
|
"integrity": "sha512-X1P21scMv4zGKLYqjdGjaKa7COa0RKVYYZZN/NfvLQ1JegxFhdhpZG/Lyn8AXx6CDUavKAd11v6BvfpkDByK8g==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
@ -23,7 +23,7 @@
|
|||||||
"@testing-library/jest-dom": "7.0.1",
|
"@testing-library/jest-dom": "7.0.1",
|
||||||
"@testing-library/react": "16.3.3",
|
"@testing-library/react": "16.3.3",
|
||||||
"@testing-library/user-event": "14.6.7",
|
"@testing-library/user-event": "14.6.7",
|
||||||
"@types/node": "26.6.3",
|
"@types/node": "26.6.2",
|
||||||
"@types/react": "19.3.0",
|
"@types/react": "19.3.0",
|
||||||
"@types/react-dom": "19.3.0",
|
"@types/react-dom": "19.3.0",
|
||||||
"@vitejs/plugin-react": "6.1.1",
|
"@vitejs/plugin-react": "6.1.1",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user