Autonomous Tauri App Testing on macOS
- Start the App
tmux new-session -d -s myapp 'bun run tauri dev'
sleep 15 2. Check Logs
tmux capture-pane -t myapp -p | tail -30
| const TheComponent = () => { | |
| const [error, setError] = React.useState(); | |
| React.useEffect(() => { | |
| const asyncOperation = async () => { | |
| // do something async | |
| }; | |
| asyncOperation().catch(e => { | |
| setError(() => { |
| const Products = () => { | |
| const { loading, data: products, refetch } = useApiGET(`/products`); | |
| const api = useApi(); | |
| if (loading) { | |
| return <Loading />; | |
| } | |
| return ( | |
| <div> | |
| {products.map(p => ( |
| import React, { useState, useEffect, useContext } from "react"; | |
| import createAuth0Client from "@auth0/auth0-spa-js"; | |
| import Auth0Client from "@auth0/auth0-spa-js/dist/typings/Auth0Client"; | |
| interface Auth0Context { | |
| isAuthenticated: boolean; | |
| user: any; | |
| loading: boolean; | |
| popupOpen: boolean; | |
| loginWithPopup(options: PopupLoginOptions): Promise<void>; |
| import 'loaders.css/loaders.css'; | |
| import './index.scss'; | |
| import React, { PropTypes } from 'react'; | |
| const LoadingIndicator = React.createClass({ | |
| propTypes: { | |
| children: PropTypes.func.isRequired, | |
| isLoading: PropTypes.bool.isRequired | |
| }, | |
| render: function() { |
| ```yml | |
| before_script: | |
| - apk add --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/main --repository http://dl-cdn.alpinelinux.org/alpine/edge/community docker | |
| - docker -v | |
| - service docker start | |
| ``` |
| ################## | |
| # Privacy Settings | |
| ################## | |
| # Privacy: Let apps use my advertising ID: Disable | |
| Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo -Name Enabled -Type DWord -Value 0 | |
| # To Restore: | |
| #Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo -Name Enabled -Type DWord -Value 1 | |
| # Privacy: SmartScreen Filter for Store Apps: Disable | |
| Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AppHost -Name EnableWebContentEvaluation -Type DWord -Value 0 |
| <aside class="sidebar"> | |
| <nav class="menu"> | |
| <div class="menu-item"> | |
| <a href="" class="menu-item__link"> | |
| <span class="menu-item__icon"> | |
| <i class="ion-ios-home-outline"></i> | |
| </span> | |
| <span class="menu-item__text"> | |
| Home | |
| </span> |